Vatly
Api Reference

Orders

On this page, we'll dive into the different order endpoints you can use to manage orders programmatically.

The order model

The order model contains all the information about your orders, including the order details, customer information, line items, and tax information.

Properties

NameTypeDescription
idstringUnique identifier for the order (starts with ord_).
resourcestringThe resource type. Always order.
merchantIdstringID of the merchant that owns this order.
customerIdstringID of the customer who made this purchase.
testmodebooleanWhether this order is in test mode.
metadataobject | nullArbitrary key-value metadata for your application.
paymentMethodstring | nullPayment method used for this order (e.g., ideal, creditcard, bancontact, paypal).
statusstringThe current status of the order. Can be pending, paid, or failed.
invoiceNumberstring | nullInvoice number for this order (assigned after payment).
totalMoneyTotal amount including taxes. A Money object with value (decimal string) and currency (ISO 4217 code).
subtotalMoneySubtotal amount before taxes.
taxSummaryMoneyTotal tax amount.
linesarrayArray of line items in this order. See OrderLine properties below.
merchantDetailsBillingDetailsMerchant billing details (seller). Includes fullName, companyName, vatNumber, streetAndNumber, streetAdditional, city, region, postalCode, country, and email.
customerDetailsBillingDetailsCustomer billing details (buyer). Same structure as merchantDetails.
createdAtstringWhen this order was created (ISO 8601 format).
linksobjectHATEOAS links to related resources. Contains self and customer links.

OrderLine Properties

NameTypeDescription
idstringUnique identifier for this line item (starts with oli_).
resourcestringThe resource type. Always orderline.
descriptionstringDescription of the item.
quantityintegerNumber of units.
basePriceMoneyPrice per unit before taxes.
totalMoneyTotal price including taxes (basePrice x quantity + taxes).
subtotalMoneySubtotal before taxes (basePrice x quantity).
taxesMoneyTax amount for this line.

List all orders

GET /v1/orders

This endpoint allows you to retrieve a paginated list of all your orders. By default, a maximum of ten orders are shown per page.

Optional parameters

NameTypeDescription
limitintegerThe number of orders to return (default: 10, max: 100).
startingAfterstringA cursor for use in pagination. Returns results after this order ID.
endingBeforestringA cursor for use in pagination. Returns results before this order ID.
curl -G https://api.vatly.com/v1/orders \
  -H "Authorization: Bearer live_your_api_key_here" \
  -d limit=10

Get an order

GET /v1/orders/:orderId

This endpoint allows you to retrieve a specific order by its ID.

Parameters

NameTypeDescription
orderIdstringThe unique identifier of the order.
curl https://api.vatly.com/v1/orders/ord_abc123def456 \
  -H "Authorization: Bearer live_your_api_key_here"

POST /v1/orders/:orderId/request-address-update-link

This endpoint allows you to request a signed link that customers can use to update their order billing address. The link is valid for a limited time (typically 24 hours).

Parameters

NameTypeDescription
orderIdstringThe unique identifier of the order.
curl -X POST https://api.vatly.com/v1/orders/ord_abc123def456/request-address-update-link \
  -H "Authorization: Bearer live_your_api_key_here"
Copyright © 2026