API to allow the integration with merchants
iF returns - Logistic API (1.4.2)
Download OpenAPI description
Overview
E-mail
Languages
Servers
Mock server
https://docs.ifreturns.com/_mock/apis/returns/
Development Server
https://api.dev.ifreturns.com/integration/v1/
Staging Server
https://api.stg.ifreturns.com/integration/v1/
Production Server
https://api.ifreturns.com/integration/v1/
Bodyapplication/json
Shop code which belongs the return. 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
Example: "marchelacolombine"
Internal code of the drop-off location where the customer was going to pick up the order
Example: "STORE-TEST-1"
- Mock serverhttps://docs.ifreturns.com/_mock/apis/returns/order_cancellation_returns
- Development Serverhttps://api.dev.ifreturns.com/integration/v1/order_cancellation_returns
- Staging Serverhttps://api.stg.ifreturns.com/integration/v1/order_cancellation_returns
- Production Serverhttps://api.ifreturns.com/integration/v1/order_cancellation_returns
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.ifreturns.com/_mock/apis/returns/order_cancellation_returns \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"shopCode": "marchelacolombine",
"orderName": "7848",
"customerEmail": "customer@if.com",
"customerPhone": "+34666666666",
"dropOffPointCode": "STORE-TEST-1",
"language": "es"
}'Response
application/json
{ "statusCode": "200", "description": "Your return have been registered correctly", "return": { "id": "eaea3209-68c9-4493-9df5-415f1b52003a", "name": "R1-7848", "shopCode": "marchelacolombine" } }
Bodyapplication/json
Shop code which belongs the return. 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
Example: "marchelacolombine"
- Mock serverhttps://docs.ifreturns.com/_mock/apis/returns/line_items_cancellation_returns
- Development Serverhttps://api.dev.ifreturns.com/integration/v1/line_items_cancellation_returns
- Staging Serverhttps://api.stg.ifreturns.com/integration/v1/line_items_cancellation_returns
- Production Serverhttps://api.ifreturns.com/integration/v1/line_items_cancellation_returns
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.ifreturns.com/_mock/apis/returns/line_items_cancellation_returns \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"shopCode": "marchelacolombine",
"orderName": "7848",
"customerEmail": "customer@if.com",
"customerPhone": "+34666666666",
"language": "es",
"removeLineItems": [
{
"sku": "1234567"
}
]
}'Response
application/json
{ "statusCode": "200", "description": "Your return have been registered correctly", "return": { "id": "eaea3209-68c9-4493-9df5-415f1b52003a", "name": "R1-7848", "shopCode": "marchelacolombine" } }