Welcome to our new Vignette ID Developer Portal documentation!
Partner API (v1.0)

External Orders Endpoints

Server

Endpoints for creating and tracking partner (external) payment orders.


Get External Orders

GET
https://sandbox-api.vignette.id
/public/external-orders

Returns a paginated, filterable list of external orders for the authenticated partner.

โš ๏ธ Rate limit policy applies to this endpoint Check Rate Limits

Get External Orders โ€บ query Parameters

status
โ€‹string

Filter by one or more statuses. Comma-separated. Allowed values: CREATED, COMPLETED, FAILED, REFUNDED. Example: COMPLETED,CREATED.

currency
โ€‹string

Filter by currency code, e.g. EUR.

payment_provider
โ€‹string

Filter by the payment provider that processed the order, e.g. stripe, monobank.

subaccount
โ€‹string

Filter by partner sub-account name.

created_after
โ€‹string

Return orders created at or after this moment. Accepts an ISO 8601 date (2026-07-01) or a UNIX timestamp.

created_before
โ€‹string

Return orders created at or before this moment. Accepts an ISO 8601 date (2026-07-01) or a UNIX timestamp.

amount_min
โ€‹number

Return orders with amount greater than or equal to this value (major units).

amount_max
โ€‹number

Return orders with amount less than or equal to this value (major units).

sort_by
โ€‹string

Field to sort by. Supported: created_at, paid_at, completed_at, amount. Default created_at.

Default: created_at
order
โ€‹stringย ยทย enum

Sort direction. asc or desc. Default desc.

Enum values:
asc
desc
Default: desc
page
โ€‹number

Page number for pagination. Default 1.

Default: 1
limit
โ€‹number

Number of items per page. Default 25.

Default: 25
bug_report
โ€‹boolean

Use with all endpoints to inform us for bugs in API

Default: false

Get External Orders โ€บ Headers

Authorization
โ€‹stringย ยทย required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Get External Orders โ€บ Responses

List of external orders

error
โ€‹object | null
โ€‹object
total
โ€‹integer

Total number of orders matching the filter.

limit
โ€‹integer

Create External Order

POST
https://sandbox-api.vignette.id
/public/external-orders

Create a partner (external) payment order. Vignette ID generates a hosted payment_link the partner shows to the customer, then reports status changes to the callback_url webhook.

โš ๏ธ Rate limit policy applies to this endpoint Check Rate Limits

Create External Order โ€บ Headers

Authorization
โ€‹stringย ยทย required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Content-Type
โ€‹stringย ยทย enumย ยทย required

Specifies the format of the request body. Must be 'application/json' for requests with a JSON body.

Enum values:
application/json
Default: application/json

Create External Order โ€บ Request Body

reference_id
โ€‹stringย ยทย minLength: 1ย ยทย required

Order identifier in the Partner system. Must be unique per partner. Used to fetch the order later via Get External Order.

product
โ€‹stringย ยทย minLength: 1ย ยทย required

Product slug on the partner side. Free-form value, e.g. esim.

amount
โ€‹numberย ยทย required

Order amount in major units of currency (decimal, not minor units). For example 22.99 means 22 euro 99 cents when currency is EUR.

currency
โ€‹stringย ยทย minLength: 1ย ยทย required

ISO 4217 currency code of the order amount, e.g. EUR, UAH, PLN.

email
โ€‹stringย ยทย emailย ยทย required

Customer email. Payment receipts and notifications are sent to this address.

allowed_payment_providers
โ€‹string[]ย ยทย minItems: 1ย ยทย uniqueย ยทย required

Payment providers the customer is allowed to pay with. The final provider is chosen at checkout.

Enum values:
monobank
stripe
paypal
callback_url
โ€‹stringย ยทย uriย ยทย required

Server-to-server webhook URL. Vignette ID sends order status updates (paid / completed / failed) to this endpoint.

description
โ€‹string

Human-readable description of the order. Shown to the user on the payment page.

success_url
โ€‹stringย ยทย uri

URL the customer is redirected to after a successful payment. If omitted, no redirect happens โ€” the payment modal shows a success animation instead.

cancel_url
โ€‹stringย ยทย uri

URL the customer is redirected to after a cancelled payment. If omitted, no redirect happens โ€” the payment modal shows a cancel animation instead.

subaccount
โ€‹string

Partner sub-account name. Lets a partner split orders across different UIs / apps / branches.

open_order_details_by_default
โ€‹boolean

When true, the payment page opens with the order details section expanded by default.

expires_in
โ€‹integerย ยทย min: 60ย ยทย max: 3600

Lifetime of the order in whole seconds, counted from creation. After it elapses, the payment_link stops working. Whole number between 60 and 3600. Defaults to 900 (15 minutes).

Default: 900

Create External Order โ€บ Responses

External order created

error
โ€‹object | null
โ€‹ExternalOrderResult

Get External Order

GET
https://sandbox-api.vignette.id
/public/external-orders/{reference_id}

Returns a single external order by its Partner-side reference_id.

โš ๏ธ Rate limit policy applies to this endpoint Check Rate Limits

Get External Order โ€บ path Parameters

reference_id
โ€‹stringย ยทย required

reference_id of the external order in the Partner system (the value sent on creation).

Get External Order โ€บ query Parameters

bug_report
โ€‹boolean

Use with all endpoints to inform us for bugs in API

Default: false

Get External Order โ€บ Headers

Authorization
โ€‹stringย ยทย required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Get External Order โ€บ Responses

External order details

error
โ€‹object | null
โ€‹ExternalOrderResult

Cancel External Order

POST
https://sandbox-api.vignette.id
/public/external-orders/{id}/cancel

Cancels an external order and stops its payment_link from working. Accepts either the Vignette ID order id (eo_...) or the partner-side reference_id in the path.

The call is idempotent โ€” cancelling an already-cancelled order returns 200 with the same order. A cancelled order cannot be restored; create a new one instead.

On success the order moves to status: CANCELED and an EXTERNAL_ORDER_STATUS_CHANGED webhook with status: CANCELED is delivered to the order's callback_url. An order that has already been paid cannot be cancelled (409 external_order_not_cancelable) โ€” issue a refund instead.

โš ๏ธ Rate limit policy applies to this endpoint Check Rate Limits

Cancel External Order โ€บ path Parameters

id
โ€‹stringย ยทย required

Order identifier. Accepts either the Vignette ID order id (eo_...) or the partner-side reference_id sent on creation.

Cancel External Order โ€บ query Parameters

bug_report
โ€‹boolean

Use with all endpoints to inform us for bugs in API

Default: false

Cancel External Order โ€บ Headers

Authorization
โ€‹stringย ยทย required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Cancel External Order โ€บ Request Body optional

reason
โ€‹stringย ยทย maxLength: 255

Free-form cancellation reason, stored with the order. Up to 255 characters.

Cancel External Order โ€บ Responses

External order cancelled (or already cancelled โ€” idempotent)

error
โ€‹object | null
โ€‹ExternalOrderResult