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.
- **Listings**:
- The `POST /listings` endpoint now requires a mandatory field called `returnReason`.
- **Retailers**:
- Retailers now store a list of supported countries in a field called `countries`.
Operations regarding the listings. Listings are products that customers want to return and are waiting to be matched with new buyers.
[- {
- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
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 |
productId required | string |
listingWebshopOrderId 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) |
required | object (CustomerRequest) |
{- "sku": "12345ab",
- "productId": "prod123",
- "listingWebshopOrderId": "someId",
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "originalPrice": 100,
- "quantity": 1,
- "maxQuantity": 3,
- "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"
}
}
}
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
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",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
ids required | Array of integers <int32> [ items <int32 > ] Comma-separated list of listing product IDs. |
[- {
- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
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 |
discountCurrency | string or null Currency for the discount value |
{- "originalPrice": 0.1,
- "status": "Available",
- "lastUpdateDiscount": "2019-08-24T14:15:22Z",
- "discountValue": 0.1,
- "discountPercentage": 0.1,
- "discountCurrency": "EUR"
}
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
[- {
- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
[- {
- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
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",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
productId required | integer <int32> |
[- {
- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
]
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",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
id required | integer <int32> |
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
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"
}
}
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. |
required | 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"
}
}
}
{- "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"
}
}
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"
}
}
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. |
required | 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"
}
}
}
{- "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"
}
}
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"
}
}
[- {
- "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"
}
}
]
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"
}
}
]
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"
}
}
]
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"
}
}
]
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"
}
}
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"
}
}
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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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"
}
}
{- "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"
}
[- {
- "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> |
{- "eventType": "ADD_LISTING",
}
{- "id": 0,
- "eventType": "ADD_LISTING",
}
[
]
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"
}
}
{- "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"
]
}
]
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. |
{- "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"
]
}
{- "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"
]
}
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": "orderWebshopId",
- "createdAt": "2025-02-19T19:28:31.104Z",
- "products": [
- {
- "id": 1,
- "sku": "sku1",
- "rmaStatus": null,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "carrierName": "TestCarrier",
- "senderId": 37,
- "receiverId": 7,
- "returnId": 9,
- "createdAt": "2025-02-19T19:28:31.104Z"
}
]
}
]
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.
webshopOrderId required | string |
required | Array of objects |
required | object (CustomerRequest) |
{- "webshopOrderId": "orderWebshopId",
- "products": [
- {
- "sku": "sku1",
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "carrierName": "TestCarrier"
}
], - "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"
}
}
}
{- "id": 1,
- "webshopOrderId": "orderWebshopId",
- "createdAt": "2025-02-19T19:28:31.104Z",
- "products": [
- {
- "id": 1,
- "sku": "sku1",
- "rmaStatus": null,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "carrierName": "TestCarrier",
- "senderId": 37,
- "receiverId": 7,
- "returnId": 9,
- "createdAt": "2025-02-19T19:28:31.104Z"
}
]
}
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": "orderWebshopId",
- "createdAt": "2025-02-19T19:28:31.104Z",
- "products": [
- {
- "id": 1,
- "sku": "sku1",
- "rmaStatus": null,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "carrierName": "TestCarrier",
- "senderId": 37,
- "receiverId": 7,
- "returnId": 9,
- "createdAt": "2025-02-19T19:28:31.104Z"
}
]
}
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": "orderWebshopId",
- "createdAt": "2025-02-19T19:28:31.104Z",
- "products": [
- {
- "id": 1,
- "sku": "sku1",
- "rmaStatus": null,
- "returnReason": "too_big",
- "returnReasonComment": "Some comment about the return reason",
- "carrierName": "TestCarrier",
- "senderId": 37,
- "receiverId": 7,
- "returnId": 9,
- "createdAt": "2025-02-19T19:28:31.104Z"
}
]
}
This webhook is triggered whenever a new listing is created.
id required | integer <int32> |
sku required | string |
productId required | string |
categoryId | integer <int32> |
receiverId | integer <int32> |
senderId required | integer <int32> |
discountPercentage required | number <float> |
discountValue required | number <float> |
discountCurrency required | string |
carbonEmissionSavingPercentage required | number <float> |
carbonEmissionSavingKilograms required | number <float> |
matchingDeadline required | string <date-time> |
status required | string return status |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
originalPrice required | number <float32> |
kilometersSaved required | number <float> |
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 |
required | object (CustomerResponse) |
object (CustomerResponse) |
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
This webhook is triggered whenever an existing listing is updated.
id required | integer <int32> |
sku required | string |
productId required | string |
categoryId | integer <int32> |
receiverId | integer <int32> |
senderId required | integer <int32> |
discountPercentage required | number <float> |
discountValue required | number <float> |
discountCurrency required | string |
carbonEmissionSavingPercentage required | number <float> |
carbonEmissionSavingKilograms required | number <float> |
matchingDeadline required | string <date-time> |
status required | string return status |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
originalPrice required | number <float32> |
kilometersSaved required | number <float> |
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 |
required | object (CustomerResponse) |
object (CustomerResponse) |
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
Triggered when the return deadline passes without the product being handed to a carrier.
id | integer <int32> |
listingId | integer <int32> ID of the corresponding listing |
sku | string Stock Keeping Unit identifier |
productId | string The ID of the product in the system |
orderDate | string <date-time> |
returnDeadline | string <date-time> |
status | string Enum: "Matched - when the order is created and matched with a listing - the default status" "Labelled - When the order is labelled and shipment is created" "Shipped - When the order is shipped" "Completed - When the order has arrived" "Cancelled - When the order is cancelled" Order Status |
createdAt | string <date-time> |
updatedAt | string <date-time> |
webshopOrderId | string The ID of the order in the webshop |
webshopOrderItemId | string The ID of the item in the webshop order |
cancelReason | string or null Enum: "NOT_DELIVERED_BY_CARRIER - When the carrier does not deliver the order" "CUSTOMER_BANNED - When the customer is banned" "RETURN_DEADLINE_PASSED - When the return deadline has passed and sender has not handed in the package" The reason for the cancellation set automatically by us. |
listingWebshopOrderId | string Webshop order ID linked to the listing |
receiverId | integer or null <int32> |
senderId | integer <int32> |
object (CustomerResponse) | |
object (CustomerResponse) |
{- "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"
}
}
Triggered when the return is canceled by the sender/customer.
id required | integer <int32> |
sku required | string |
productId required | string |
categoryId | integer <int32> |
receiverId | integer <int32> |
senderId required | integer <int32> |
discountPercentage required | number <float> |
discountValue required | number <float> |
discountCurrency required | string |
carbonEmissionSavingPercentage required | number <float> |
carbonEmissionSavingKilograms required | number <float> |
matchingDeadline required | string <date-time> |
status required | string return status |
createdAt required | string <date-time> |
updatedAt required | string <date-time> |
originalPrice required | number <float32> |
kilometersSaved required | number <float> |
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 |
required | object (CustomerResponse) |
object (CustomerResponse) |
{- "id": 100,
- "sku": "12345ab",
- "productId": "123product",
- "categoryId": 101,
- "receiverId": 201,
- "senderId": 501,
- "discountPercentage": 10,
- "discountValue": 4,
- "discountCurrency": "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",
- "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"
}
}
Triggered when a shipping label is generated for the order.
id | integer <int32> |
status | string Enum: "Labelled - when label is generated" "Shipped - when it was handed in to the carrier" "Completed - when it was delivered" "Cancelled - when it was canceled, or the return deadline has passed" return status |
orderId | integer <int32> |
createdAt | string <date-time> |
updatedAt | string <date-time> |
label | string |
carrierName | string |
warehouseId | integer <int32> |
labelType | string Enum: "QR" "Barcode" Type of the label |
object (WarehouseResponse) | |
object |
{- "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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 leaves the warehouse and is on its way.
id | integer <int32> |
status | string Enum: "Labelled - when label is generated" "Shipped - when it was handed in to the carrier" "Completed - when it was delivered" "Cancelled - when it was canceled, or the return deadline has passed" return status |
orderId | integer <int32> |
createdAt | string <date-time> |
updatedAt | string <date-time> |
label | string |
carrierName | string |
warehouseId | integer <int32> |
labelType | string Enum: "QR" "Barcode" Type of the label |
object (WarehouseResponse) | |
object |
{- "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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 | integer <int32> |
status | string Enum: "Labelled - when label is generated" "Shipped - when it was handed in to the carrier" "Completed - when it was delivered" "Cancelled - when it was canceled, or the return deadline has passed" return status |
orderId | integer <int32> |
createdAt | string <date-time> |
updatedAt | string <date-time> |
label | string |
carrierName | string |
warehouseId | integer <int32> |
labelType | string Enum: "QR" "Barcode" Type of the label |
object (WarehouseResponse) | |
object |
{- "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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 a refund must be issued for one or more shipped items.
id | integer <int32> |
status | string Enum: "Labelled - when label is generated" "Shipped - when it was handed in to the carrier" "Completed - when it was delivered" "Cancelled - when it was canceled, or the return deadline has passed" return status |
orderId | integer <int32> |
createdAt | string <date-time> |
updatedAt | string <date-time> |
label | string |
carrierName | string |
warehouseId | integer <int32> |
labelType | string Enum: "QR" "Barcode" Type of the label |
object (WarehouseResponse) | |
object |
[- {
- "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,
- "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"
}, - "listing": {
- "id": 1,
- "sku": "UpdatedSku",
- "productId": "prod67890",
- "discountPercentage": 10,
- "discountValue": 2,
- "discountCurrency": "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
}
}
}
]