Sources

inventory Api Source Repository V1Get Get

get

Get Source data by given code. If you want to create plugin on get method, also you need to create separate plugin on getList method, because entity loading way is different for these methods

Path parameters
sourceCodestringRequired

(Required)

Example: <string>
Responses
chevron-right
200

OK

application/json
Responseobject
get
/V1/inventory/sources/{sourceCode}

inventory Api Source Repository V1Save Put

put

Save Source data

Path parameters
sourceCodestringRequired

(Required)

Example: <string>
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"source":{"source_code":"fugiat irure sunt","name":"dolore enim proident","email":"ex","contact_name":"voluptate in","enabled":true,"description":"nisi ut","latitude":-94639462.57247242,"longitude":40313848.06426379,"country_id":"commodo ea","region_id":-15459067,"region":"dolore","city":"esse laborum mollit dolore culpa","street":"non voluptate proident cupida","postcode":"Ut","phone":"laboris non ut","fax":"ut in","use_default_carrier_config":true,"carrier_links":[{"carrier_code":"aliquip pariatur tempor","position":-34309493,"extension_attributes":{}},{"carrier_code":"enim Ut exercitation in cillum","position":88696842,"extension_attributes":{}}],"extension_attributes":{"is_pickup_location_active":false,"frontend_name":"ad reprehenderit in nulla","frontend_description":"in aute do ipsum"}}}
Responses
put
/V1/inventory/sources/{sourceCode}

inventory Api Source Repository V1Get List Get

get

Find Sources by SearchCriteria SearchCriteria is not required because load all stocks is useful case

Query parameters
searchCriteria[filterGroups][0][filters][0][field]stringOptional

Field

Example: <string>
searchCriteria[filterGroups][0][filters][0][value]stringOptional

Value

Example: <string>
searchCriteria[filterGroups][0][filters][0][conditionType]stringOptional

Condition type

Example: <string>
searchCriteria[sortOrders][0][field]stringOptional

Sorting field.

Example: <string>
searchCriteria[sortOrders][0][direction]stringOptional

Sorting direction.

Example: <string>
searchCriteria[pageSize]stringOptional

Page size.

Example: <integer>
searchCriteria[currentPage]stringOptional

Current page.

Example: <integer>
Responses
chevron-right
200

OK

application/json
Responseobject
get
/V1/inventory/sources

inventory Api Source Repository V1Save Post

post

Save Source data

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"source":{"source_code":"fugiat irure sunt","name":"dolore enim proident","email":"ex","contact_name":"voluptate in","enabled":true,"description":"nisi ut","latitude":-94639462.57247242,"longitude":40313848.06426379,"country_id":"commodo ea","region_id":-15459067,"region":"dolore","city":"esse laborum mollit dolore culpa","street":"non voluptate proident cupida","postcode":"Ut","phone":"laboris non ut","fax":"ut in","use_default_carrier_config":true,"carrier_links":[{"carrier_code":"aliquip pariatur tempor","position":-34309493,"extension_attributes":{}},{"carrier_code":"enim Ut exercitation in cillum","position":88696842,"extension_attributes":{}}],"extension_attributes":{"is_pickup_location_active":false,"frontend_name":"ad reprehenderit in nulla","frontend_description":"in aute do ipsum"}}}
Responses
post
/V1/inventory/sources