Download OpenAPI specification:Download
Welcome to the NOTYD API documentation.
Response example
{- "id": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "uuid": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "external_invoice_uid": "123456",
- "payment_status": {
- "name": "Not paid",
- "value": "not_paid"
}, - "closed_at": null,
- "created_at": "2021-09-22T10:19:28.258525+02:00",
- "updated_at": "2021-09-22T10:19:28.258533+02:00",
- "on_hold": null,
- "on_hold_at": null,
- "order_uuid": "ef04b0cd-28c2-4548-a33e-967f216cbcbf",
- "due_date": "2021-10-22T08:19:28.258525Z",
- "company": {
- "uuid": "4583921d-2580-40af-97fd-3aa924fc92c5",
- "name": "My Cool Company B.V.",
- "vat_number": "NL001234567B01",
- "registration_number": "001234567000",
- "country": "NL",
- "created_at": "2021-08-23T15:44:13.834989+02:00",
- "updated_at": "2021-08-23T15:44:13.835003+02:00"
}, - "seller": {
- "uuid": "6c60367c-c03e-4b88-ba75-d01dbabb10f0",
- "name": "The Best Seller Company B.V.",
- "vat_number": "NL007654321B01",
- "registration_number": "600938370000",
- "website": "www.bestsellercompany.nl",
- "country": "NL",
- "created_at": "2021-08-23T15:28:10+02:00",
- "updated_at": "2021-08-23T15:28:10+02:00"
}, - "dunning_status": {
- "name": "Initial",
- "value": 0
}, - "value": {
- "currency": "EUR",
- "value": 48400,
- "value_in_currency_units": 484,
- "symbol": "€"
}, - "refunds": [
- {
- "uuid": "23a2fb3a-b049-4b33-be0c-2b3f9eadbbb0",
- "external_refund_uid": "",
- "invoice": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "refund_lines": [
- {
- "product_id": "9721550216932",
- "quantity": 1,
- "total_amount_incl_tax": 48400,
- "total_amount_excl_tax": 39123,
- "description": "Cupiditate corporis dicta officiis est."
}
], - "amount": 48400,
- "description": "something something"
}
], - "total_due_excl_tax_in_currency_units": 400,
- "tax": {
- "tax": 8401,
- "tax_in_currency_units": 84.01
}, - "invoice_lines": [
- {
- "id": 25,
- "tax": 8400,
- "tax_in_currency_units": 84,
- "total_product_price_incl_tax": 48400,
- "total_product_price_incl_tax_in_currency_units": 484,
- "total_product_price_excl_tax": 40000,
- "total_product_price_excl_tax_in_currency_units": 400,
- "product_price_excl_tax_in_currency_units": 400,
- "product_price_incl_tax_in_currency_units": 484,
- "external_product_uid": "1441808338558",
- "product_name": "Electric toothbrush",
- "product_description": "Electric toothbrush including brushes.",
- "product_tax_rate_percentage": "21.000000",
- "currency": "EUR",
- "symbol": "€",
- "quantity": 1,
- "invoice": 1645,
- "order_line": 16990
}
], - "upcoming_payment_reminder_sent": 0,
- "upcoming_payment_reminder_sent_at": null,
- "invoice_due_sent": 0,
- "invoice_due_sent_at": null,
- "free_reminder_sent": 0,
- "free_reminder_sent_at": null,
- "reminder_1_sent": 0,
- "reminder_1_sent_at": null,
- "reminder_2_sent": 0,
- "reminder_2_sent_at": null,
- "last_notice_sent": 0,
- "last_notice_sent_at": null,
- "representative": {
- "uuid": "2774b843-5354-4337-8900-7a6dc91d05d4",
- "first_name": "John",
- "last_name": "Doe",
- "created_at": "2021-08-23T15:44:13.858685+02:00",
- "updated_at": "2021-08-23T15:44:13.858696+02:00"
}, - "shipping_address": {
- "uuid": "1332b1d6-d520-4aee-ad4a-36a068e4d0b1",
- "is_billing_address": true,
- "is_shipping_address": true,
- "street": "Teststraat",
- "house_number": "1",
- "house_number_suffix": "a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "billing_address": {
- "uuid": "1332b1d6-d520-4aee-ad4a-36a068e4d0b1",
- "is_billing_address": true,
- "is_shipping_address": true,
- "street": "Teststraat",
- "house_number": "1",
- "house_number_suffix": "a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "seller_company_address": {
- "street_address_1": "Elvis Presleystraat 99",
- "street_address_2": "z",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "97777 TT",
- "country": "NL"
}
}
List all invoices associated to the logged in seller user.
Response example
{- "count": 123,
- "results": [
- [
- {
- "id": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "uuid": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "external_invoice_uid": "123456",
- "payment_status": {
- "name": "Not paid",
- "value": "not_paid"
}, - "closed_at": null,
- "created_at": "2021-09-22T10:19:28.258525+02:00",
- "updated_at": "2021-09-22T10:19:28.258533+02:00",
- "on_hold": null,
- "on_hold_at": null,
- "order_uuid": "ef04b0cd-28c2-4548-a33e-967f216cbcbf",
- "due_date": "2021-10-22T08:19:28.258525Z",
- "company": {
- "uuid": "4583921d-2580-40af-97fd-3aa924fc92c5",
- "name": "My Cool Company B.V.",
- "vat_number": "NL001234567B01",
- "registration_number": "001234567000",
- "country": "NL",
- "created_at": "2021-08-23T15:44:13.834989+02:00",
- "updated_at": "2021-08-23T15:44:13.835003+02:00"
}, - "seller": {
- "uuid": "6c60367c-c03e-4b88-ba75-d01dbabb10f0",
- "name": "The Best Seller Company B.V.",
- "vat_number": "NL007654321B01",
- "registration_number": "600938370000",
- "website": "www.bestsellercompany.nl",
- "country": "NL",
- "created_at": "2021-08-23T15:28:10+02:00",
- "updated_at": "2021-08-23T15:28:10+02:00"
}, - "dunning_status": {
- "name": "Initial",
- "value": 0
}, - "value": {
- "currency": "EUR",
- "value": 48400,
- "value_in_currency_units": 484,
- "symbol": "€"
}, - "refunds": [
- {
- "uuid": "23a2fb3a-b049-4b33-be0c-2b3f9eadbbb0",
- "external_refund_uid": "",
- "invoice": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "refund_lines": [
- {
- "product_id": "9721550216932",
- "quantity": 1,
- "total_amount_incl_tax": 48400,
- "total_amount_excl_tax": 39123,
- "description": "Cupiditate corporis dicta officiis est."
}
], - "amount": 48400,
- "description": "something something"
}
]
}
]
]
}
Set or update external (seller) invoice ID or invoice URL
{- "external_invoice_uid": "string",
}
Response example
{- "id": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "uuid": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "external_invoice_uid": "123456",
- "payment_status": {
- "name": "Not paid",
- "value": "not_paid"
}, - "closed_at": null,
- "created_at": "2021-09-22T10:19:28.258525+02:00",
- "updated_at": "2021-09-22T10:19:28.258533+02:00",
- "on_hold": null,
- "on_hold_at": null,
- "order_uuid": "ef04b0cd-28c2-4548-a33e-967f216cbcbf",
- "due_date": "2021-10-22T08:19:28.258525Z",
- "company": {
- "uuid": "4583921d-2580-40af-97fd-3aa924fc92c5",
- "name": "My Cool Company B.V.",
- "vat_number": "NL001234567B01",
- "registration_number": "001234567000",
- "country": "NL",
- "created_at": "2021-08-23T15:44:13.834989+02:00",
- "updated_at": "2021-08-23T15:44:13.835003+02:00"
}, - "seller": {
- "uuid": "6c60367c-c03e-4b88-ba75-d01dbabb10f0",
- "name": "The Best Seller Company B.V.",
- "vat_number": "NL007654321B01",
- "registration_number": "600938370000",
- "website": "www.bestsellercompany.nl",
- "country": "NL",
- "created_at": "2021-08-23T15:28:10+02:00",
- "updated_at": "2021-08-23T15:28:10+02:00"
}, - "dunning_status": {
- "name": "Initial",
- "value": 0
}, - "value": {
- "currency": "EUR",
- "value": 48400,
- "value_in_currency_units": 484,
- "symbol": "€"
}, - "refunds": [
- {
- "uuid": "23a2fb3a-b049-4b33-be0c-2b3f9eadbbb0",
- "external_refund_uid": "",
- "invoice": "6a6ceb0a-c7f5-4456-84ef-6ddabddd75fd",
- "refund_lines": [
- {
- "product_id": "9721550216932",
- "quantity": 1,
- "total_amount_incl_tax": 48400,
- "total_amount_excl_tax": 39123,
- "description": "Cupiditate corporis dicta officiis est."
}
], - "amount": 48400,
- "description": "something something"
}
], - "total_due_excl_tax_in_currency_units": 400,
- "tax": {
- "tax": 8401,
- "tax_in_currency_units": 84.01
}, - "invoice_lines": [
- {
- "id": 25,
- "tax": 8400,
- "tax_in_currency_units": 84,
- "total_product_price_incl_tax": 48400,
- "total_product_price_incl_tax_in_currency_units": 484,
- "total_product_price_excl_tax": 40000,
- "total_product_price_excl_tax_in_currency_units": 400,
- "product_price_excl_tax_in_currency_units": 400,
- "product_price_incl_tax_in_currency_units": 484,
- "external_product_uid": "1441808338558",
- "product_name": "Electric toothbrush",
- "product_description": "Electric toothbrush including brushes.",
- "product_tax_rate_percentage": "21.000000",
- "currency": "EUR",
- "symbol": "€",
- "quantity": 1,
- "invoice": 1645,
- "order_line": 16990
}
], - "upcoming_payment_reminder_sent": 0,
- "upcoming_payment_reminder_sent_at": null,
- "invoice_due_sent": 0,
- "invoice_due_sent_at": null,
- "free_reminder_sent": 0,
- "free_reminder_sent_at": null,
- "reminder_1_sent": 0,
- "reminder_1_sent_at": null,
- "reminder_2_sent": 0,
- "reminder_2_sent_at": null,
- "last_notice_sent": 0,
- "last_notice_sent_at": null,
- "representative": {
- "uuid": "2774b843-5354-4337-8900-7a6dc91d05d4",
- "first_name": "John",
- "last_name": "Doe",
- "created_at": "2021-08-23T15:44:13.858685+02:00",
- "updated_at": "2021-08-23T15:44:13.858696+02:00"
}, - "shipping_address": {
- "uuid": "1332b1d6-d520-4aee-ad4a-36a068e4d0b1",
- "is_billing_address": true,
- "is_shipping_address": true,
- "street": "Teststraat",
- "house_number": "1",
- "house_number_suffix": "a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "billing_address": {
- "uuid": "1332b1d6-d520-4aee-ad4a-36a068e4d0b1",
- "is_billing_address": true,
- "is_shipping_address": true,
- "street": "Teststraat",
- "house_number": "1",
- "house_number_suffix": "a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "seller_company_address": {
- "street_address_1": "Elvis Presleystraat 99",
- "street_address_2": "z",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "97777 TT",
- "country": "NL"
}
}
In order to use NOTYD API you need a token for authorisation.
Create token request returns a token, which will expire in 2 hours.
{- "username": "string",
- "password": "string"
}
{- "access": "string",
- "refresh": "string"
}
After obtaining a token from the Create token endpoint, the expire time of this token can be extended to 24 hours using the Refresh token
endpoint.
{- "refresh": "string"
}
{- "access": "string"
}
Use it to create an order request, starting the purchase flow for the buyer.
The response contains the payment_page_url
to redirect the buyer to NOTYD's
hosted payment page (HPP), where the buyer can finalize the payment.
Please use three amounts (total_amount_incl_tax
, total_amount_excl_tax
, total_amount_tax
)
when create an order request
Request payload example
{- "external_webshop_uid": "ffaf4252-8207-4b74-9668-933274b1bc5f",
- "external_order_uid": "7304421653023",
- "total_amount_incl_tax": 59500,
- "total_amount_excl_tax": 49200,
- "total_amount_tax": 10300,
- "currency": "EUR",
- "order_lines": [
- {
- "quantity": 1,
- "product_id": "1441808338558",
- "product_name": "Electric toothbrush",
- "product_description": "Electric toothbrush including brushes.",
- "product_price_excl_tax": 40000,
- "product_price_incl_tax": 48400,
- "product_tax_rate_percentage": "21.000000"
}, - {
- "quantity": 2,
- "product_id": "1441808332526",
- "product_name": "Lamp",
- "product_description": "Colour-changing lamp",
- "product_price_excl_tax": 5000,
- "product_price_incl_tax": 6050,
- "product_tax_rate_percentage": "21.000000"
}
], - "discount": {
- "description": "10€ discount",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 800,
- "amount_tax": 200
}, - "buyer_company": {
- "name": "My Cool Company B.V.",
- "registration_number": "001234567000",
- "vat_number": "NL001234567B01",
}, - "buyer_representative": {
- "first_name": "John",
- "last_name": "Doe",
- "phone_number": "+31612345678"
}, - "shipping_address": {
- "street_address_1": "Teststraat 1a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "billing_address": {
- "street_address_1": "Teststraat 1a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "locale": "en",
- "payment_link_duration": 900,
- "seller_urls": {
},
}
Response example
{- "uuid": "27e91c76-35fa-4f3e-9279-bee06a94e1ca",
- "created_at": "2021-08-24T14:15:22Z",
- "updated_at": "2021-08-24T14:15:22Z",
- "payment_page_url": "https://api.sandbox.notyd.com/order-request/27e91c76-35fa-4f3e-9279-bee06a94e1ca",
- "external_webshop_uid": "ffaf4252-8207-4b74-9668-933274b1bc5f",
- "external_order_uid": "7304421653023",
- "total_amount_incl_tax": 59500,
- "total_amount_excl_tax": 49200,
- "total_amount_tax": 10300,
- "currency": "EUR",
- "order_lines": [
- {
- "quantity": 1,
- "product_id": "1441808338558",
- "product_name": "Electric toothbrush",
- "product_description": "Electric toothbrush including brushes.",
- "product_price_excl_tax": 40000,
- "product_price_incl_tax": 48400,
- "product_tax_rate_percentage": "21.000000"
}, - {
- "quantity": 2,
- "product_id": "1441808332526",
- "product_name": "Lamp",
- "product_description": "Colour-changing lamp",
- "product_price_excl_tax": 5000,
- "product_price_incl_tax": 6050,
- "product_tax_rate_percentage": "21.000000"
}
], - "discount": {
- "description": "10€ discount",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 800,
- "amount_tax": 200
}, - "buyer_company": {
- "name": "My Cool Company B.V.",
- "registration_number": "001234567000",
- "vat_number": "NL001234567B01",
}, - "buyer_representative": {
- "first_name": "John",
- "last_name": "Doe",
- "phone_number": "+31612345678"
}, - "shipping_address": {
- "street_address_1": "Teststraat 1a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "billing_address": {
- "street_address_1": "Teststraat 1a",
- "city": "Groningen",
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL"
}, - "locale": "en",
- "payment_link_duration": 900,
- "seller_urls": {
}, - "amount": 59500
}
This endpoint cancels the order. Order can not be cancelled after it was captured. Cancelled is a terminal state, so no further actions are possible after order is cancelled
{- "id": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "description": "Order has been cancelled"
}
Capture (part of) an accepted order to let NOTYD know that you have shipped the goods, and NOTYD will send a payment request to the Buyer. Only the captured parts of orders can be settled (paid out) and/or refunded.
The capture API considers the following scenarios:
1. Full (remaining) capture: amounts, discount, order_lines are not provided. The remaining parts of the order will be captured. If nothing is captured yet, the complete order including discount will be captured.
2. Partial-Capture: amounts are provided, discount and order_lines are optional, only specified amount and discount will be captured. Use this when only part of the goods are shipped.
Array of objects (OrderLinePartialCapture) | |
external_invoice_uid | string Original invoice number of the Seller related to this capture. If supplied, the original invoice number will be displayed on the payment request that NOTYD B.V. sends to the Buyer. This can also be set later, via the Update Invoice endpoint. |
invoice_url | string <uri> <= 2000 characters URL to the original invoice of the Seller. If available, please provide it here. If not available, please provide it, when possible, in the Update Invoice endpoint. |
object The discount on the order to be included in this capture. | |
amount | integer Deprecated Capturing amount (cents). Should be equal to sum of order lines |
total_amount_incl_tax | integer Capturing amount including tax (cents). Should be equal to sum of order lines |
total_amount_excl_tax | integer Capturing amount excl tax (cents). Should be equal to sum of order lines |
total_amount_tax | integer Capturing tax amount (cents). Should be equal to |
{- "external_invoice_uid": "inv-2022-001234",
- "order_lines": [
- {
- "product_id": "1441808332526",
- "product_price_incl_tax": 6050,
- "product_price_excl_tax": 5500,
- "product_tax_rate_percentage": "10",
- "quantity": 2
}
], - "discount": {
- "description": "10 EUR discount on the order",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 900,
- "amount_tax": 100
}, - "total_amount_incl_tax": 11100,
- "total_amount_excl_tax": 10100,
- "total_amount_tax": 1000
}
{- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "status": "partially_captured",
- "invoice_uuid": "f4a14dc7-f81e-45fc-974c-39f5bb2c4383",
- "payment_reference": "BLR196X1AQP",
- "details": "Order status updated to partially_captured"
}
Response example
{- "uuid": "27e91c76-35fa-4f3e-9279-bee06a94e1ca",
- "external_order_uid": "GAZAnEfwJXuVcsubEfK",
- "company": {
- "name": "My Cool Company B.V.",
- "vat_number": "NL001234567B01",
- "registration_number": "001234567000",
- "country": "NL"
}, - "seller": {
- "uuid": "560d4b7eb6a84b7e8f06e377716ff650",
- "name": "The Best Seller Company B.V.",
- "registration_number": "828282890000",
- "vat_number": "NL007654321B01",
- "website": "www.bestsellercompany.nl",
- "country": "NL",
- "created_at": "2021-08-18T16:21:03+02:00",
- "updated_at": "2022-06-16T15:13:19.852893+02:00"
}, - "value": {
- "currency": "EUR",
- "value": 59500,
- "value_in_currency_units": 595,
- "symbol": "€"
}, - "status": {
- "name": "Refunded",
- "value": "refunded"
}, - "actions": {
- "mark_as_failed": false,
- "mark_as_cancelled": false,
- "mark_as_rejected": false,
- "mark_as_accepted": false,
- "mark_as_partially_captured": false,
- "mark_as_captured": false,
- "mark_as_partially_refunded": false,
- "mark_as_refunded": false
}, - "created_at": "2022-08-17T15:45:29.610697+02:00",
- "created_at_split": {
- "date": "2022-08-17",
- "time": "13:45",
- "utc_offset": "+0000",
- "timezone": "UTC"
}, - "updated_at_split": {
- "date": "2022-08-17",
- "time": "13:45",
- "utc_offset": "+0000",
- "timezone": "UTC"
}, - "total_amount_incl_tax": 45076,
- "total_amount_excl_tax": 42035,
- "total_amount_tax": 3041,
- "order_lines": [
- {
- "product_tax_rate_percentage": "19.000000",
- "tax": 1723,
- "tax_in_currency_units": 17.23,
- "total_product_price_incl_tax": 10796,
- "total_product_price_incl_tax_in_currency_units": 107.96,
- "total_product_price_excl_tax": 9073,
- "total_product_price_excl_tax_in_currency_units": 90.73,
- "product_price_incl_tax": 10796,
- "product_price_incl_tax_in_currency_units": 107.96,
- "product_price_excl_tax": 9073,
- "product_price_excl_tax_in_currency_units": 90.73,
- "quantity": 1,
- "external_product_uid": "9366327809797",
- "symbol": "€",
- "currency": "EUR",
- "product_name": "Electric toothbrush",
- "product_description": "Electric toothbrush including brushes."
}, - {
- "product_tax_rate_percentage": "4.000000",
- "tax": 1318,
- "tax_in_currency_units": 13.18,
- "total_product_price_incl_tax": 34280,
- "total_product_price_incl_tax_in_currency_units": 342.8,
- "total_product_price_excl_tax": 32962,
- "total_product_price_excl_tax_in_currency_units": 329.62,
- "product_price_incl_tax": 34280,
- "product_price_incl_tax_in_currency_units": 342.8,
- "product_price_excl_tax": 32962,
- "product_price_excl_tax_in_currency_units": 329.62,
- "quantity": 1,
- "external_product_uid": "7579352905903",
- "symbol": "€",
- "currency": "EUR",
- "product_name": "Lamp",
- "product_description": "Colour-changing lamp"
}
], - "shipping_address": {
- "uuid": "1fc840e0-7586-4490-8965-9ca9b8516960",
- "street_address_1": "Teststraat 1a",
- "is_billing_address": false,
- "is_shipping_address": true,
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL",
- "city": "Groningen"
}, - "billing_address": {
- "uuid": "1fc840e0-7586-4490-8965-9ca9b8516960",
- "street_address_1": "Teststraat 1a",
- "is_billing_address": true,
- "is_shipping_address": false,
- "region": "Groningen",
- "postal_code": "9711 TT",
- "country": "NL",
- "city": "Groningen"
}, - "discount": {
- "description": "10€ discount",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 800,
- "amount_tax": 200
}, - "representative": {
- "uuid": "9f4d232f-2d40-4b11-a764-e9f18e7c69d1",
- "first_name": "John",
- "last_name": "Doe",
- "created_at": "2022-08-12T15:55:51.769526+02:00",
- "updated_at": "2022-08-12T15:55:51.769564+02:00"
}, - "invoices": [
- {
- "uuid": "19e9108e-ce97-43a9-8352-fbe4c62344b4",
- "value": {
- "currency": "EUR",
- "value": 45076,
- "value_in_currency_units": 450.76,
- "symbol": "€"
}, - "payment_status": {
- "name": "Refunded",
- "value": "refunded"
}, - "closed_at": null,
- "created_at": "2022-08-10T15:24:36.075866+02:00",
- "updated_at": "2022-08-10T15:24:43.701871+02:00",
- "on_hold": false,
- "on_hold_at": null,
- "dunning_status": {
- "name": "Initial",
- "value": 0
}, - "refunds": [
- {
- "uuid": "ce1afe2d-74ef-4a96-b1a9-00e28fc8cbcb",
- "external_refund_uid": "",
- "invoice": "BLR2PLIC8XT",
- "description": "full refund test external invoice id",
- "created_at": "2022-08-10T15:28:26.599464+02:00",
- "amount": 45076,
- "currency": "EUR",
- "refund_lines": [
- {
- "product_id": "9366327809797",
- "product_name": "smile",
- "total_amount_excl_tax": 9073,
- "total_amount_incl_tax": 10796,
- "total_amount_tax": 1723,
- "product_tax_rate_percentage": "19.000000",
- "description": "",
- "quantity": 1
}, - {
- "product_id": "7579352905903",
- "product_name": "somebody",
- "total_amount_excl_tax": 32962,
- "total_amount_incl_tax": 34280,
- "total_amount_tax": 1318,
- "product_tax_rate_percentage": "4.000000",
- "description": "",
- "quantity": 1
}
], - "discount": {
- "description": "10€ discount",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 800,
- "amount_tax": 200
}
}
]
}
]
}
The response returns a list of Invoices where a refundable_quantity
and a total_refundable_amount
is shown for each invoice line.
The refundable_quantity
is calculated as quantity
minus the already refunded quantity.
The total_refundable_amount
fields are calculated per line based on the refundable_quantity
field and the product_price
fields, being product_price
the price per unit
{- "count": 0,
- "next": "string",
- "previous": "string",
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "currency": "str",
- "symbol": "string",
- "id": "string",
- "has_discount": true,
- "refundable_discount": {
- "description": "string",
- "amount_incl_tax": 0,
- "amount_excl_tax": 0,
- "amount_tax": 0
}, - "total_refundable_amount_incl_tax": 0,
- "payment_status": {
- "name": "string",
- "value": "string"
}, - "invoice_lines": [
- {
- "currency": "string",
- "symbol": "string",
- "product_id": "string",
- "product_name": "string",
- "product_tax_rate_percentage": "string",
- "quantity": 0,
- "product_price_excl_tax": 0,
- "product_price_incl_tax": 0,
- "product_price_excl_tax_in_currency_units": 0,
- "product_price_incl_tax_in_currency_units": 0,
- "refundable_quantity": 0,
- "total_refundable_amount_excl_tax": 0,
- "total_refundable_amount_incl_tax": 0,
- "total_refundable_amount_excl_tax_in_currency_units": 0,
- "total_refundable_amount_incl_tax_in_currency_units": 0
}
], - "seller_payments": [
- {
- "uuid": "string",
- "amount": -2147483648,
- "book_datetime": "2019-08-24T14:15:22Z",
- "invoice_uuid": "d34afd19-44c3-4554-a501-e02b109398c5"
}
]
}
]
}
List all the orders associated to the authenticated user.
Response example
{- "count": 123,
- "results": [
- {
- "count": 1,
- "next": null,
- "previous": null,
- "results": [
- {
- "uuid": "27e91c76-35fa-4f3e-9279-bee06a94e1ca",
- "external_order_uid": "GAZAnEfwJXuVcsubEfK",
- "company": {
- "name": "My Cool Company B.V.",
- "vat_number": "NL001234567B01",
- "registration_number": "001234567000",
- "country": "NL"
}, - "seller": {
- "uuid": "560d4b7eb6a84b7e8f06e377716ff650",
- "name": "The Best Seller Company B.V.",
- "registration_number": "828282890000",
- "vat_number": "NL007654321B01",
- "website": "www.bestsellercompany.nl",
- "country": "NL",
- "created_at": "2021-08-18T16:21:03+02:00",
- "updated_at": "2022-06-16T15:13:19.852893+02:00"
}, - "value": {
- "currency": "EUR",
- "value": 59500,
- "value_in_currency_units": 595,
- "symbol": "€"
}, - "status": {
- "name": "Refunded",
- "value": "refunded"
}, - "actions": {
- "mark_as_failed": false,
- "mark_as_cancelled": false,
- "mark_as_rejected": false,
- "mark_as_accepted": false,
- "mark_as_partially_captured": false,
- "mark_as_captured": false,
- "mark_as_partially_refunded": false,
- "mark_as_refunded": false
}, - "created_at": "2022-08-17T15:45:29.610697+02:00",
- "created_at_split": {
- "date": "2022-08-17",
- "time": "13:45",
- "utc_offset": "+0000",
- "timezone": "UTC"
}, - "updated_at_split": {
- "date": "2022-08-17",
- "time": "13:45",
- "utc_offset": "+0000",
- "timezone": "UTC"
}, - "total_amount_incl_tax": 45076,
- "total_amount_excl_tax": 42035,
- "total_amount_tax": 3041
}
]
}
]
}
Get details of what has been captured and what remains to be captured in an order
{- "uuid": "string",
- "order_amount": 0,
- "uncaptured": {
- "uncaptured_amount": 0,
- "uncaptured_discount_amount": 0,
- "lines": [
- {
- "product_tax_rate_percentage": "string",
- "tax": 0,
- "tax_in_currency_units": 0,
- "total_product_price_incl_tax": 0,
- "total_product_price_incl_tax_in_currency_units": 0,
- "total_product_price_excl_tax": 0,
- "total_product_price_excl_tax_in_currency_units": 0,
- "product_price_incl_tax": 0,
- "product_price_incl_tax_in_currency_units": 0,
- "product_price_excl_tax": 0,
- "product_price_excl_tax_in_currency_units": 0,
- "quantity": 0,
- "external_product_uid": "string",
- "symbol": "string",
- "currency": "GBP",
- "product_name": "string",
- "product_description": "string"
}
]
}, - "captured": {
- "captured_amount": 0,
- "captured_discount_amount": 0,
- "lines": [
- {
- "product_tax_rate_percentage": "string",
- "tax": 0,
- "tax_in_currency_units": 0,
- "total_product_price_incl_tax": 0,
- "total_product_price_incl_tax_in_currency_units": 0,
- "total_product_price_excl_tax": 0,
- "total_product_price_excl_tax_in_currency_units": 0,
- "product_price_incl_tax": 0,
- "product_price_incl_tax_in_currency_units": 0,
- "product_price_excl_tax": 0,
- "product_price_excl_tax_in_currency_units": 0,
- "quantity": 0,
- "external_product_uid": "string",
- "symbol": "string",
- "currency": "GBP",
- "product_name": "string",
- "product_description": "string"
}
]
}
}
For full refunds, simply supply the order amount and the refund description. For partial refunds, the payload should contain only one invoice in the invoices
array to be refunded. Regardless of refund method used, upon a successful refund, one credit note will be created per affected invoice.
Regardless of the refund method used, the 200 response (and the credit notes created) will have the same structure. Each entry in the refunds
list represents a credit note.
{- "total_amount_incl_tax": 5050,
- "total_amount_excl_tax": 4200,
- "total_amount_tax": 850,
- "description": "Refund",
- "invoices": [
- {
- "invoice_uuid": "f4a14dc7-f81e-45fc-974c-39f5bb2c4383",
- "external_refund_uid": "Credit-note-1234",
- "refund_lines": [
- {
- "product_id": "1441808332526",
- "quantity": 1,
- "total_amount_incl_tax": 6050,
- "total_amount_excl_tax": 5000,
- "description": "Colour-changing lamp"
}
], - "discount": {
- "description": "refund full discount",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 800,
- "amount_tax": 200
}
}
]
}
{- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "refunds": [
- {
- "uuid": "69035daa-4b3a-4014-8603-b3a690c13e83",
- "external_refund_uid": "Credit-note-1234",
- "invoice": "f4a14dc7-f81e-45fc-974c-39f5bb2c4383",
- "description": "Refund",
- "amount": 5050,
- "refund_lines": [
- {
- "product_id": "1441808338558",
- "quantity": 1,
- "total_amount_incl_tax": 6050,
- "total_amount_excl_tax": 5000,
- "description": "Colour-changing lamp"
}
], - "discount": {
- "description": "full discount",
- "amount_incl_tax": 1000,
- "amount_excl_tax": 800,
- "amount_tax": 200
}
}
], - "details": "Order status updated to partially_refunded."
}
Update order details.
{- "total_amount_incl_tax": 0,
- "total_amount_excl_tax": 0,
- "total_amount_tax": 0,
- "order_lines": [
- {
- "product_id": "string",
- "quantity": 1,
- "product_name": "string",
- "product_description": "string",
- "product_price_excl_tax": 0,
- "product_price_incl_tax": 0,
- "product_tax_rate_percentage": "string"
}
], - "discount": {
- "description": "string",
- "amount_incl_tax": 0,
- "amount_excl_tax": 0,
- "amount_tax": 0
}
}
{- "id": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "description": "Order has been patched"
}
Get the details for a specific seller user by UUID
.
{- "id": "string",
- "uuid": "string",
- "email": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "name": "string",
- "is_active": true,
- "seller_profile_uuid": "string",
- "webshop_url": "string"
}
List all the users that belong to the same seller account as the logged in user.
{- "count": 123,
- "results": [
- {
- "id": "string",
- "uuid": "string",
- "email": "string",
- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "name": "string",
- "is_active": true,
- "seller_profile_uuid": "string",
- "webshop_url": "string"
}
]
}