Download OpenAPI specification:
This is a starting point for IGF API based on the OpenAPI 3.0 specification. For a detailed changelog, refer to the Changelog page.
- test carrier metadata & info; end-to-end loyalty system (points, endpoints, jobs & docs); warehouse handling improvements; onboarding enhancements; returnless test-mode jobs & order-cleanup; customer/address schema refactor.
- Changed: carriers no longer require order ID with mapping util; revamped shipment logic & unified adapter signatures; Salesforce integration migrated to new platform adapter; updated schema & type fields.
Operations regarding the listings. Listings are products that customers want to return and are waiting to be matched with new buyers.
ip | string Optional IP address to filter listings by sender's country. |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
Create a new listing and checks if the customer already exists. If it does it creates the listing with this customer,otherwise it creates a new customer and then the listing. Customer exits if the email and the address are the same. The country code must follow the ISO 3166-1 alpha-2 standard for example "NL", "DE", "BE"...
sku required | string |
variantId | string |
productId required | string |
listingWebshopOrderId required | string |
listingWebshopOrderItemId required | string |
returnReason required | string Enum: "color" "too_small" "too_big" "broken" "style" "not_what_expected" "changed_my_mind" "other_good_condition" "other_bad_condition" "no_reason" "wrong_item" |
returnReasonComment | string |
originalPrice required | number |
quantity | integer The quantity of the product you want added |
maxQuantity | integer The maximum quantity of the product (the amount of product in the order) |
currency | string Enum: "EUR" "USD" "GBP" "BGN" |
attributes | object |
required | object (CustomerRequest) |
{- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "prod123",
- "listingWebshopOrderId": "someId",
- "listingWebshopOrderItemId": "someId",
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "originalPrice": 100,
- "quantity": 1,
- "maxQuantity": 3,
- "currency": "EUR",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "customer": {
- "username": "john_doe",
- "email": "john.doe@example.com",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890",
- "language": "en",
- "address": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
}
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}
}
It shows all listings, purchased or not. You can also specify a list of listing IDs or a listingWebshopOrderId
in query parameters to filter the listings.
ids | Array of integers <int32> [ items <int32 > ] Comma-separated list of listing IDs. |
listingWebshopOrderId | string A specific listingWebshopOrderId to filter listings by. If provided, returns listings associated with the given listingWebshopOrderId. |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
ids required | Array of integers <int32> [ items <int32 > ] Comma-separated list of listing product IDs. |
ip | string Optional IP address to filter listings by sender's country. |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
{- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
id required | integer <int32> |
originalPrice | number or null <float> The original price of the product |
status | string or null Enum: "Available" "Pending" return status |
lastUpdateDiscount | string or null <date-time> ISO 8601 date string for the last update discount |
discountValue | number or null <float> Discount value applied to the product |
discountPercentage | number or null <float> Discount percentage applied to the product |
currency | string or null Currency for the item |
{- "originalPrice": 0.1,
- "status": "Available",
- "lastUpdateDiscount": "2019-08-24T14:15:22Z",
- "discountValue": 0.1,
- "discountPercentage": 0.1,
- "currency": "EUR"
}
{- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
skuId required | string |
ip | string Optional IP address to filter listings by sender's country. |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
Retrieve all listings for each of the specified skus in the path of the request.
skuIds required | string Comma-separated list of SKU Ids. |
ip | string Optional IP address to filter listings by sender's country. |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
Customer ID in this case is in this case always going to be the sender of the listing.
customerId required | integer <int32> |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
productId required | integer <int32> |
ip | string Optional IP address to filter listings by sender's country. |
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
Cancel a listing. When a listing is cancelled the order and shipment are also cancelled. If a shipment has been shipped, listing order and shipment can not be cancelled anymore.
listingId required | integer <int32> ID of listing to cancel |
cancelReason | string Enum: "NOT_DELIVERED_BY_CARRIER" "CUSTOMER_BANNED" "MATCHING_PERIOD_PASSED" "RETURN_DEADLINE_PASSED" "USER_CANCELLED" Order Status |
{- "cancelReason": "NOT_DELIVERED_BY_CARRIER"
}
{- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
id required | integer <int32> |
{- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
An order is created when someone purchases a listing. At this point, the buyer is added, and a corresponding order is generated.
Returns all orders for the tenant, or a specific order if a listing ID is provided.
listingId | integer ID of the listing to filter orders |
options | string Value: "ordersDetails" Currently supports 'ordersDetails' option to return orders only with 'sku', 'webshopOrderId', and 'listingWebshopOrderId' sorted by creation date. |
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
Place an order, a listing is purchased. Creates a new customer (which is receiver in this case) if it does not exist yet. If it does it creates a new order with existing customer (receiver). Sender is retrieved from the listingId provided in the request body. This starts the handin period. It also sends listing matched email to the senders address.
listingId required | integer <int32> |
webshopOrderId | string |
webshopOrderItemId | string |
carrierName | string Enum: "PostNL" "DHL_eCommerce_Benelux" "TestCarrier" The Name of the Carrier, if not provided the first one added will be selected by default. |
object Will create new customer if it doest exist and set it as receiver of the order. |
{- "listingId": 23,
- "webshopOrderId": "sa23Dq",
- "webshopOrderItemId": "sa23Dq",
- "carrierName": "PostNL",
- "customer": {
- "username": "john_doe",
- "email": "john.doe@example.com",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890",
- "language": "en",
- "address": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
}
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
Returns a single purchase order by ID
orderId required | integer <int32> ID of order that needs to be fetched |
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors
orderId required | integer <int32> ID of the order that needs to be deleted |
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
An order is commited initially in case an error while creating the order appears. If a problem doesn't occur the retailer is free to continue on with the payment. After the payment the order has to be confirmed or rejected in /orders/finalize/:id
listingId required | integer <int32> |
webshopOrderId | string |
webshopOrderItemId | string |
carrierName | string Enum: "PostNL" "DHL_eCommerce_Benelux" "TestCarrier" The Name of the Carrier, if not provided the first one added will be selected by default. |
object Will create new customer if it doest exist and set it as receiver of the order. |
{- "listingId": 23,
- "webshopOrderId": "sa23Dq",
- "webshopOrderItemId": "sa23Dq",
- "carrierName": "PostNL",
- "customer": {
- "username": "john_doe",
- "email": "john.doe@example.com",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890",
- "language": "en",
- "address": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
}
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
An order is confirmed or rejected based on the action in the body. If it is rejected the listing is set back to Available and all related data is deleted
id required | integer ID of the order to be confirmed or rejected |
action required | string Enum: "CONFIRM" "REJECT" Action to be performed on the order (CONFIRM or REJECT) |
{- "action": "CONFIRM"
}
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
[- {
- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
receiverId required | integer <int32> |
[- {
- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
senderId required | integer <int32> |
[- {
- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
productId required | integer <int32> |
[- {
- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
Gets the initial webshop order which the warehouse sent to the first customer before the article was forwarded.
id required | string Webshop order ID |
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
Give the initial webshop order id and get the latest order on this item. This happens because one item can be forwarded multiple times and we want to know what was the latest order in the chain.
id required | string Listing webshop order ID |
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
A shipment is created when an order is shipped. Upon creation, shipment data is to the carrier, and the shipping label is retrieved from the carrier.
Gets all shipments of the tenant, or a specific shipment if an orderId
or listingId
is provided. Only one of the parameters (orderId
or listingId
) can be provided at a time.
orderId | integer ID of the order to filter shipments. Cannot be used with |
listingId | integer ID of the listing to filter shipments. Cannot be used with |
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
Creates a shipment and returns the shipment label from the carrier. The return address for the shipment is the address of the tenants warehouse. (NOTE':' currently no multiple warehouse support. Only the warehouse added first will be used as a return address)
orderId required | integer <int32> ID pf the order. |
{- "orderId": 10
}
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 2,
- "createdAt": "2024-05-14T15:16:55.636Z",
- "updatedAt": "2024-05-14T15:17:00.594Z",
- "label": "SomeBase64String",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR"
}
Gets the status of a single shipment
shipmentId required | string ID of shipment to return |
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
delete a shipment
shipmentId required | integer <int32> shipment id to delete |
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
Set the status of a shipment to delivered and set the listing and order status to completed
shipmentId required | string ID of shipment to return |
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
Set feedback for a shipment by its id. Feedback needs to be an integer between 0 and 2.
shipmentId required | string ID of shipment to return |
Feedback object that needs to be set for the shipment
feedback | integer [ 0 .. 2 ] Feedback values:
|
{- "feedback": 2
}
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
Operations regarding the customer. Customer can be either sender (the one who returns the product) or receiver (the one who buys the product).
Returns customer by the id. Customer is a sender or a receiver.
id required | string |
{- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}
Updates customer.
id required | string id of customer that needs to be updated, with info that needs to be updated |
Update an existent customer in the store
username | string |
email required | string <email> |
firstName | string |
lastName required | string |
phone | string |
language | string |
required | object (Address) |
{- "username": "john_doe",
- "email": "john.doe@example.com",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890",
- "language": "en",
- "address": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
{- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}
/
id required | string The id of customer that needs to be deleted |
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
Ban customer by email
"email@real.com"
{- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}
{- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}
Returns all loyalty events for a specific customer by their ID, including event history and details
customerId required | integer <int32> ID of the customer to get loyalty events for |
[- {
- "id": 1,
- "customerId": 123,
- "eventType": "CREATED_LISTING",
- "tenantId": 1,
- "createdAt": "2025-07-25T10:30:00.000Z",
- "customer": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}
}
]
[- {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}
]
Create a new warehouse
name required | string |
address | string |
postalCode required | string |
city required | string |
countryCode required | string |
houseNumber required | string |
street required | string |
type | string Type of the warehouse |
responsibleEmployeeLastname | string |
responsibleEmployeeFirstname | string |
responsibleEmployeeEmail | string <email> |
{- "name": "Warehouse 1",
- "address": "123 Example St",
- "postalCode": "12345",
- "city": "Example City",
- "countryCode": "EX",
- "houseNumber": "22a",
- "street": "Example Street",
- "type": "Warehouse Type",
- "responsibleEmployeeLastname": "Doe",
- "responsibleEmployeeFirstname": "John",
- "responsibleEmployeeEmail": "john.doe@example.com"
}
{- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}
Returns warehouse by the id
id required | string |
{- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}
Updates warehouse.
id required | string id of warehouse that needs to be updated, with info that needs to be updated |
Update an existent warehouse in the store
name required | string |
address | string |
postalCode required | string |
city required | string |
countryCode required | string |
houseNumber required | string |
street required | string |
type | string Type of the warehouse |
responsibleEmployeeLastname | string |
responsibleEmployeeFirstname | string |
responsibleEmployeeEmail | string <email> |
{- "name": "Warehouse 1",
- "address": "123 Example St",
- "postalCode": "12345",
- "city": "Example City",
- "countryCode": "EX",
- "houseNumber": "22a",
- "street": "Example Street",
- "type": "Warehouse Type",
- "responsibleEmployeeLastname": "Doe",
- "responsibleEmployeeFirstname": "John",
- "responsibleEmployeeEmail": "john.doe@example.com"
}
{- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}
/
id required | string The id of warehouse that needs to be deleted |
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
[- {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}
]
eventType required | string (EventType) Enum: "ADD_LISTING" "UPDATE_LISTING" "RETURN_DEADLINE_PASSED" "RETURN_CANCELED" "LABELED" "SHIPPED" "COMPLETED" "REFUND" The event type for which the webhook is being subscribed.
|
url required | string <uri> |
urlType required | string (UrlType) Enum: "SHOPIFY" "PORTAL" "BIG_COMMERCE" "SALESFORCE" "OTHER" The type of the url the webhook makes the request to.
|
{- "eventType": "ADD_LISTING",
- "urlType": "SHOPIFY"
}
{- "id": 0,
- "eventType": "ADD_LISTING",
- "urlType": "SHOPIFY"
}
[
]
eventType required | string (EventType) Enum: "ADD_LISTING" "UPDATE_LISTING" "RETURN_DEADLINE_PASSED" "RETURN_CANCELED" "LABELED" "SHIPPED" "COMPLETED" "REFUND" The event type of the webhook to delete |
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
Returns the tenant information. Number of listings, number of orders, number of shipments and periods.
Retrieves the number of listings, orders, shipments, and other relevant details of the specified tenant.
{- "Name": "tenant_database_name",
- "Number of listings": 5,
- "Number of orders": 10,
- "Number of shipments": 3,
- "Handin Period": "2024-01-01 to 2024-02-01",
- "Matching Period": "2024-02-02 to 2024-03-01"
}
Array of objects (Item) | |
webshopOrderId | string Webshop order ID |
object (Address) |
{- "items": [
- {
- "sku": "aa",
- "productId": "abc123"
}
], - "webshopOrderId": 123,
- "address": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
{- "sku": "sku123",
- "productId": "product123",
- "status": "Available"
}
apiKey required | string API key for authentication |
{- "apiKey": "api-key"
}
{- "apiKey": "api-key",
- "id": 1
}
One to One relation with tenant. Holds retailer information, such as carrier contract data, warehouse, matching periods and others.
[- {
- "name": "Retailer 1",
- "matchingPeriod": 3,
- "handinPeriod": 5,
- "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "bannedEmails": [ ],
- "fromEmail": "hello@itgoesforward.com",
- "discountsEnabled": true,
- "averageSavingsKilometers": 100,
- "postmarkApiKey": "POSTMARK_API_KEY",
- "countries": [
- "NL",
- "US"
], - "halfReturnDeadlineReminderEmail": false,
- "labelledReminderEmail": false,
- "labelEmail": false,
- "shippingConfirmationEmail": false,
- "returnless": {
- "apiKey": "returnless_api_key",
- "secret": "returnless_secret",
- "addressName": "IGF"
}
}
]
Update a retailer
name | string |
matchingPeriod | integer <int32> |
handinPeriod | integer <int32> |
whitelist | Array of strings |
blacklist | Array of strings |
bannedEmails | Array of strings List of banned email addresses for the retailer. |
packageReceivedLink | string Link to the feedback page for a received package. This is used in the 'package received' email and allows the recipient to leave feedback on a specific shipment. |
returnCancelledLink | string Link to the return label generation page. This link is sent in the 'return canceled' email and allows the user to view details about the return cancellation for a specific listing and generate the label to return the product back to the warehouse, as it would happen normally, without IGF. |
returnDeadlineLink | string Link to the return the package to the warehouse page. This is included in the 'return deadline passed' email and directs the user to the return package to the warehouse, as deadline to hand-in package for forwarding was missed. |
matchMadeLink | string Link to the matched order details page. Sent in the 'match made' email, this link directs the user to view the matched order details for the corresponding order and generate forwarding label. |
matchDeadlineLink | string Link to the return the package to the warehouse page. This is included in the 'match deadline passed' email and directs the user to the return package to the warehouse, as deadline to match the package for forwarding passed. |
forwardRegisteredLink | string Link to the forward registered page. This is included in the 'forward registered' email and directs the user to view the details of the forwarded package. |
fromEmail | string Email address to be used as the sender of all emails sent from the retailer. This is used in the 'package received', 'return canceled', 'return deadline passed', 'match made', 'match deadline passed' and 'forward registered' emails. |
discountsEnabled | boolean Flag to indicate if the retailer has discounts enabled. |
averageSavingsKilometers | float Average savings in kilometers for the retailer. |
postmarkApiKey | string Postmark API key to be used for sending emails from the retailer. |
countries | Array of strings List of countries where the retailer operates in ISO 3166-1 alpha-2 country codes. |
halfReturnDeadlineReminderEmail | boolean Default: false Indicates whether the half return deadline reminder email should be sent. |
labelledReminderEmail | boolean Default: false Indicates whether a reminder email should be sent when the shipment was labeled but not handed in at the carrier. |
labelEmail | boolean Default: false Indicates whether after user generates the label, an email with the label as an attachment should be sent. |
shippingConfirmationEmail | boolean Default: false Indicates whether the shipping confirmation email should be sent. |
object or null Configuration for Returnless integration. This is used to handle return orders through the Returnless platform. |
{- "name": "Retailer 1",
- "matchingPeriod": 3,
- "handinPeriod": 5,
- "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "bannedEmails": [ ],
- "fromEmail": "hello@itgoesforward.com",
- "discountsEnabled": true,
- "averageSavingsKilometers": 100,
- "postmarkApiKey": "POSTMARK_API_KEY",
- "countries": [
- "NL",
- "US"
], - "halfReturnDeadlineReminderEmail": false,
- "labelledReminderEmail": false,
- "labelEmail": false,
- "shippingConfirmationEmail": false,
- "returnless": {
- "apiKey": "returnless_api_key",
- "secret": "returnless_secret",
- "addressName": "IGF"
}
}
{- "name": "Retailer 1",
- "matchingPeriod": 3,
- "handinPeriod": 5,
- "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "bannedEmails": [ ],
- "fromEmail": "hello@itgoesforward.com",
- "discountsEnabled": true,
- "averageSavingsKilometers": 100,
- "postmarkApiKey": "POSTMARK_API_KEY",
- "countries": [
- "NL",
- "US"
], - "halfReturnDeadlineReminderEmail": false,
- "labelledReminderEmail": false,
- "labelEmail": false,
- "shippingConfirmationEmail": false,
- "returnless": {
- "apiKey": "returnless_api_key",
- "secret": "returnless_secret",
- "addressName": "IGF"
}
}
Disable discount for a retailer. Now the discount doesn't apply to the items from this retailer
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
Contains essential information required to facilitate communication with carriers. Currently supported carriers':' PostNL, DHL_eCommerce_Benelux, TestCarrier.
Creates a new carrier contract if name, retailer combination doesnt exist yet, if it does it deletes the old one and creates a new one.
data required | object The JSON data for the carrier contract (PostNL) |
name required | string The name of the carrier |
{- "data": {
- "apiKey": "api-key",
- "customerCode": "code",
- "customerNumber": "numberABC"
}, - "name": "PostNL"
}
{- "id": 1,
- "data": {
- "apiKey": "api-key",
- "customerCode": "code",
- "customerNumber": "numberABC"
}, - "name": "PostNL",
- "retailerId": 1
}
Gets the details of a single carrier contract by its ID.
id required | integer |
{- "id": 1,
- "data": {
- "apiKey": "api-key",
- "customerCode": "code",
- "customerNumber": "numberABC"
}, - "name": "PostNL",
- "retailerId": 1
}
Updates the data of an existing carrier contract, does not allow name and retailer id updates.
id required | integer |
data required | object The JSON data for the carrier contract (PostNL example). |
{- "data": {
- "apiKey": "api-key",
- "customerCode": "code",
- "customerNumber": "numberABC"
}
}
{- "id": 1,
- "data": {
- "apiKey": "api-key",
- "customerCode": "code",
- "customerNumber": "numberABC"
}, - "name": "PostNL",
- "retailerId": 1
}
Gets the details of all carrier contracts.
[- {
- "name": "PostNL",
- "data": {
- "type": "object",
- "properties": {
- "apiKey": {
- "type": "string"
}, - "customerCode": {
- "type": "string"
}, - "customerNumber": {
- "type": "string"
}
}, - "required": [
- "apiKey",
- "customerCode",
- "customerNumber"
]
}
}, - {
- "name": "DHL-eCommerce-Benelux",
- "data": {
- "type": "object",
- "properties": {
- "userId": {
- "type": "string"
}, - "key": {
- "type": "string"
}, - "accountNumbers": {
- "type": "array",
- "items": {
- "type": "string"
}
}
}, - "required": [
- "userId",
- "key",
- "accountNumbers"
]
}
}
]
You give an array of new discount ranges. There should be no gaps between ranges, otherwise an error occurs.
minPrice required | number <float> |
maxPrice required | number <float> |
maxDiscount required | number <f;pat> |
[- {
- "minPrice": 0,
- "maxPrice": 21.5,
- "maxDiscount": 4.5
}
]
[- {
- "id": 1,
- "minPrice": 0,
- "maxPrice": 21.5,
- "maxDiscount": 4.5
}
]
Gets all regular returns of the tenant, and also includes the products for each return.
[- {
- "id": 1,
- "webshopOrderId": "ORDER-123456",
- "trackTrace": "3SYZ1234567890",
- "label": "label_qr_code_string",
- "labelType": "QR",
- "createdAt": "2025-06-03T14:55:00.000Z",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "paymentData": {
- "status": "paid",
- "paymentId": "tr_xyz789",
}, - "products": [
- {
- "id": 1001,
- "sku": "SKU12345",
- "rmaStatus": null,
- "returnReason": "wrong_item",
- "returnReasonComment": "Wrong product shipped",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "carrierName": "PostNL",
- "listingWebshopOrderItemId": "8f3b2a6a-f12a-4b3b-8ff2-191ec5ad93e0",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "returnId": 9,
- "createdAt": "2025-06-03T14:55:00.000Z"
}
]
}
]
Creates a regular return and returns it to the user, together with the created products. This can fail due to request validation, or if the tenant does not have a warehouse set up.
createLabel | boolean Whether to create a warehouse return label for the regular return. |
webshopOrderId required | string |
required | Array of objects |
required | object (CustomerRequest) |
object | |
createLabel | boolean |
{- "webshopOrderId": "ORDER-123456",
- "products": [
- {
- "sku": "SKU123456",
- "returnReason": "too_small",
- "returnReasonComment": "Didn't fit quite right.",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "carrierName": "PostNL",
- "listingWebshopOrderItemId": "a5b11c36-43f1-4d91-a3ea-20124e9cd239"
}
], - "customer": {
- "username": "john_doe",
- "email": "john.doe@example.com",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890",
- "language": "en",
- "address": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}, - "paymentDetails": {
- "amount": {
- "currency": "EUR",
- "value": "14.95"
}, - "description": "Refund for returned product",
}, - "createLabel": true
}
{- "id": 1,
- "webshopOrderId": "ORDER-123456",
- "trackTrace": "3SYZ1234567890",
- "label": "label_qr_code_string",
- "labelType": "QR",
- "createdAt": "2025-06-03T14:55:00.000Z",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "paymentData": {
- "status": "paid",
- "paymentId": "tr_xyz789",
}, - "products": [
- {
- "id": 1001,
- "sku": "SKU12345",
- "rmaStatus": null,
- "returnReason": "wrong_item",
- "returnReasonComment": "Wrong product shipped",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "carrierName": "PostNL",
- "listingWebshopOrderItemId": "8f3b2a6a-f12a-4b3b-8ff2-191ec5ad93e0",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "returnId": 9,
- "createdAt": "2025-06-03T14:55:00.000Z"
}
]
}
Gets a return for a tenant by its webshop order ID, including the products for the return. This will fail if no return is found.
{- "id": 1,
- "webshopOrderId": "ORDER-123456",
- "trackTrace": "3SYZ1234567890",
- "label": "label_qr_code_string",
- "labelType": "QR",
- "createdAt": "2025-06-03T14:55:00.000Z",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "paymentData": {
- "status": "paid",
- "paymentId": "tr_xyz789",
}, - "products": [
- {
- "id": 1001,
- "sku": "SKU12345",
- "rmaStatus": null,
- "returnReason": "wrong_item",
- "returnReasonComment": "Wrong product shipped",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "carrierName": "PostNL",
- "listingWebshopOrderItemId": "8f3b2a6a-f12a-4b3b-8ff2-191ec5ad93e0",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "returnId": 9,
- "createdAt": "2025-06-03T14:55:00.000Z"
}
]
}
Deletes a return by its ID. This will fail with status code 400 if the tenant provided an ID for which he does not have a return.
{- "id": 1,
- "webshopOrderId": "ORDER-123456",
- "trackTrace": "3SYZ1234567890",
- "label": "label_qr_code_string",
- "labelType": "QR",
- "createdAt": "2025-06-03T14:55:00.000Z",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "paymentData": {
- "status": "paid",
- "paymentId": "tr_xyz789",
}, - "products": [
- {
- "id": 1001,
- "sku": "SKU12345",
- "rmaStatus": null,
- "returnReason": "wrong_item",
- "returnReasonComment": "Wrong product shipped",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "carrierName": "PostNL",
- "listingWebshopOrderItemId": "8f3b2a6a-f12a-4b3b-8ff2-191ec5ad93e0",
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "returnId": 9,
- "createdAt": "2025-06-03T14:55:00.000Z"
}
]
}
Simulate jobs for listings, orders, and shipments. Useful for testing and debugging purposes.
This endpoint simulates a job for a given job type and entity ID. The job type determines the type of entity (e.g., listing, order, or shipment) and the corresponding simulation logic.
jobType required | string Enum: "return_deadline" "half_return_deadline" "match_deadline" "half_match_deadline" "labelled_reminder" The type of job to simulate (e.g., MatchDeadline, ReturnDeadline, etc.). |
id required | integer The ID of the entity to simulate the job for -Listing for matching deadlines, Order for return deadlines, and shipment for labelled Return. |
{- "errorCode": "E1000",
- "message": "Validation Error has occurred",
- "details": "Can have different shapes depending on the error."
}
{- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
[- {
- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
]
Triggered when the return deadline passes without the product being handed to a carrier.
{- "id": 10,
- "listingId": 198772,
- "sku": "8719903119420",
- "productId": "7984",
- "orderDate": "2019-08-24T14:15:22Z",
- "returnDeadline": "2019-08-24T14:15:22Z",
- "status": "Shipped",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "webshopOrderId": "26439",
- "webshopOrderItemId": "43384",
- "cancelReason": "NOT_DELIVERED_BY_CARRIER",
- "listingWebshopOrderId": "3000000057",
- "receiverId": 0,
- "senderId": 0,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
{- "id": 100,
- "sku": "12345ab",
- "variantId": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 5,
- "carbonEmissionSavingKilograms": 2,
- "matchingDeadline": "2024-05-11T12:00:00Z",
- "status": "Available",
- "createdAt": "2024-05-01T12:00:00Z",
- "updatedAt": "2024-05-03T12:00:00Z",
- "originalPrice": 100,
- "kilometersSaved": 10,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "attributes": {
- "size": "M",
- "color": "red"
}, - "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}
}
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
Triggered when the order has been successfully delivered to the customer.
{- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
[- {
- "id": 1,
- "status": "Labelled - when label is generated",
- "orderId": 1,
- "createdAt": "2024-07-10T14:01:07.252Z",
- "updatedAt": "2024-07-10T14:04:12.317Z",
- "label": "3SDEVC676401291",
- "carrierName": "PostNL",
- "warehouseId": 1,
- "labelType": "QR",
- "warehouse": {
- "id": 2,
- "name": "Main Warehouse",
- "address": "123 Warehouse Lane",
- "postalCode": "2645JT",
- "city": "Amsterdam",
- "countryCode": "NL",
- "country": "NL",
- "houseNumber": "33a",
- "street": "warehouse street 5",
- "retailerId": 1,
- "type": null,
- "responsibleEmployeeLastname": "Tester",
- "responsibleEmployeeFirstname": "Filip",
- "responsibleEmployeeEmail": "filip@tester.com"
}, - "order": {
- "id": 1,
- "sku": "UpdatedSku",
- "listingId": 1,
- "productId": "prod67890",
- "orderDate": "2024-07-10T14:00:48.494Z",
- "returnDeadline": "2024-07-13T14:00:57.961Z",
- "status": "Done",
- "createdAt": "2024-07-10T14:00:48.501Z",
- "updatedAt": "2024-07-10T14:00:57.963Z",
- "receiverId": 2,
- "senderId": 1,
- "listingWebshopOrderId": 123456789,
- "listingWebshopOrderItemId": 987654321,
- "sender": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "receiver": {
- "id": 123,
- "username": "john_doe",
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "phone": "+1234567890",
- "customerStatus": 1,
- "addressId": 1001,
- "language": "nl"
}, - "senderAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "receiverAddress": {
- "street": "Marconplein 16",
- "city": "Rotterdam",
- "country": "NL",
- "postalCode": "94301",
- "houseNr": "33a",
- "firstName": "John",
- "lastName": "Doe",
- "phone": "+1234567890"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "currency": "EUR",
- "carbonEmissionSavingPercentage": 33,
- "carbonEmissionSavingKilograms": 0.3124708,
- "kilometersSaved": 123.02,
- "matchingDeadline": "2024-07-13T13:59:26.936Z",
- "status": "Pending",
- "createdAt": "2024-07-10T13:59:26.936Z",
- "updatedAt": "2024-07-10T14:00:48.488Z",
- "categoryId": null,
- "receiverId": 2,
- "senderId": 1,
- "originalPrice": 20,
- "lastUpdateDiscount": "2024-07-10T13:59:34.235Z",
- "warehouseId": 1
}
}
}
]