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 retrurn request or rma. 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"
Currency in which the order is being returned was placed. All amounts reported must be in this currency
Example: "EUR"
Origin address for the return
List of items included in the return
Amount returned by the customer in the merchant
Example: "100,"
Number of orders placed by the customer in the merchant
Example: 1
- Mock serverhttps://docs.ifreturns.com/_mock/apis/returns/return_methods
- Development Serverhttps://api.dev.ifreturns.com/integration/v1/return_methods
- Staging Serverhttps://api.stg.ifreturns.com/integration/v1/return_methods
- Production Serverhttps://api.ifreturns.com/integration/v1/return_methods
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.ifreturns.com/_mock/apis/returns/return_methods \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"shopCode": "marchelacolombine",
"currencyCode": "EUR",
"ecommerceOrder": {
"id": 123,
"orderType": "DTC",
"salesChannel": "web",
"status": "COMPLETED",
"totalPaid": 254,
"totalDiscount": 0,
"totalShippingCost": 5,
"paymentMethods": [
{
"method": "credit_card",
"amount": 254
}
],
"tags": [
"WEB",
"SUMMER"
],
"discountCodes": [
"WELCOME10",
"FREESHIPPING"
],
"lineItems": [
{
"id": "456456",
"name": "Oxford shirt M",
"sku": "OSM123",
"variantOptions": [
{
"key": "color",
"value": "blue"
},
{
"key": "size",
"value": "M"
}
],
"quantity": 1,
"originalUnitPrice": 100,
"lineTotalPrice": 100,
"lineTotalDiscount": 0,
"lineTotalPaid": 100,
"productTags": [
"new",
"color:blue",
"collection:summer"
],
"primaryProductCategory": "shirts",
"productVendor": "ifreturns"
},
{
"id": "456488",
"name": "Black trouser 38",
"sku": "BT038",
"variantOptions": [
{
"key": "color",
"value": "black"
},
{
"key": "size",
"value": "38"
}
],
"quantity": 2,
"originalUnitPrice": 149,
"lineTotalPrice": 298,
"lineTotalDiscount": 10,
"lineTotalPaid": 198,
"productTags": [
"outlet"
],
"primaryProductCategory": "trousers",
"productVendor": "ifreturns"
}
],
"fulfillments": [
{
"id": "2454552154",
"fulfilledAt": "2024-07-02",
"deliverAt": "2024-07-04",
"fulfillmentCenter": "MAIN_WAREHOUSE",
"fulfillmentCenterCountryCode": "ES",
"shipmentCarrier": "CORREOS",
"shipmentServiceName": "Express Delivery",
"fulfillmentLineItems": [
{
"lineItemid": "456456",
"quantity": 1
},
{
"lineItemid": "456488",
"quantity": 1
}
]
}
]
},
"originAddress": {
"firstName": "Paul",
"lastName": "Doe",
"line1": "C. Juan de Mena 8",
"line2": "sótano",
"city": "Madrid",
"postalCode": "28010",
"regionCode": "M",
"countryCode": "ES"
},
"returnLineItems": {
"id": 456456,
"name": "Oxford shirt M",
"sku": "OSM123",
"variantOptions": [
{
"key": "color",
"value": "blue"
}
],
"quantity": 1,
"originalUnitPrice": 100,
"lineTotalPrice": 100,
"lineTotalDiscount": 0,
"lineTotalPaid": 100,
"returnReasonCode": "size-bigger",
"refundTypeCode": "ORIGINAL_PAYMENT_METHOD",
"productTags": [
"new",
"color:blue",
"collection:summer"
],
"primaryProductCategory": "shirts",
"productVendor": "iFreturns"
},
"client": {
"id": "2352123",
"totalAmountSpent": "1000,",
"totalAmountReturned": "100,",
"quantityPlacedOrders": 1,
"quantityReturns": 1,
"tier": "GOLD"
}
}'Response
application/json
{ "returnMethods": [ { … } ] }