iF returns - Inverse Logistic API (1.2.10)
API to allow the integration with merchants
https://docs.ifreturns.com/_mock/apis/returns/
https://api.dev.ifreturns.com/integration/v1/
https://api.stg.ifreturns.com/integration/v1/
https://api.ifreturns.com/integration/v1/
- application/only-registered+json
- application/new-items+json
Shop code which belongs the return request or RMA. This field is mandatory if the authorization token will be used by more than one shop. In case this field is not informed, it will be obtained from security context. In case it is informed, it will be validated against the security context
ID of the shipment. The ID must exist in the platform. API will use this value to search the shipment whose status will be updated.
Type of ID that is being reported * RETURN_ID
- ID of the return. The last active shipment/transport will be searched. This value is generated by iF at the moment the return request is created. It has the GUID format (f1844145-28a8-48d5-97b4-b00505e98cdc) * RETURN_NAME
- Name of the return. The last active shipment/transport will be searched. This value is generated by iF at the moment the return request is created. It has the format R#-{ORDER_NAME} (R1-64231)
Grading status of the return assigned after the validation
- Mock server
https://docs.ifreturns.com/_mock/apis/returns/gradings
- Development Server
https://api.dev.ifreturns.com/integration/v1/gradings
- Staging Server
https://api.stg.ifreturns.com/integration/v1/gradings
- Production Server
https://api.ifreturns.com/integration/v1/gradings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.ifreturns.com/_mock/apis/returns/gradings \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/only-registered+json' \
-d '{
"shopCode": "marchelacolombine",
"shipmentId": "R1-64231",
"shipmentIdType": "RETURN_NAME",
"status": "OK",
"itemsWithIncidents": [
{
"sku": "1234567",
"barcode": "8893892",
"status": "DEFECT-ODOURS-OR-DIRTY",
"note": "picking error",
"validatedAt": "2022-11-17 12:01:00"
}
]
}'
{ "statusCode": "200", "description": "Your grading have been received correctly" }
Shop code which belongs the return request or RMA. This field is mandatory if the authorization token will be used by more than one shop. In case this field is not informed, it will be obtained from security context. In case it is informed, it will be validated against the security context
List of items that have been graded
Validation status assigned to the graded item
Date when the validation was performed (UTC)
- Mock server
https://docs.ifreturns.com/_mock/apis/returns/orders/{order_name}/return_gradings
- Development Server
https://api.dev.ifreturns.com/integration/v1/orders/{order_name}/return_gradings
- Staging Server
https://api.stg.ifreturns.com/integration/v1/orders/{order_name}/return_gradings
- Production Server
https://api.ifreturns.com/integration/v1/orders/{order_name}/return_gradings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.ifreturns.com/_mock/apis/returns/orders/8e1b8c92-37a9-44c6-952a-b86bce1d8cfb/return_gradings \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/new-items+json' \
-d '{
"shopCode": "marchelacolombine",
"returnName": "R1-64231",
"returnLineItems": [
{
"sku": "string",
"status": "APPROVED",
"note": "string",
"validatedAt": "2022-11-17 12:01:00",
"refundType": "ORIGINAL_PAYMENT_METHOD"
}
]
}'
{ "statusCode": "200", "description": "Your grading have been received correctly" }