Soldo Pre-approved Spend API
The Pre-approved Spend API from Soldo — 3 operation(s) for pre-approved spend.
The Pre-approved Spend API from Soldo — 3 operation(s) for pre-approved spend.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/soldo-pre-approved-spend-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
openapi: 3.2.0
info:
title: Soldo Business API v2.0 Pre-approved Spend API
description: Soldo Business API v2.0 OpenAPI specification
version: 5.56.0
servers:
- url: https://api.soldo.com
description: Production server (using live data)
- url: https://api-demo.soldocloud.net
description: Sandbox server (using test data)
tags:
- name: Pre-approved Spend
paths:
/business/v2/purchases:
get:
tags:
- Pre-approved Spend
summary: Search Purchases
description: Endpoint to find `Purchases` using filtering parameters.
operationId: pre-approved-spend-search
parameters:
- name: fromDate
in: query
description: 'The beginning of the period of the search `fromDate` included (i.e. greater than or equal to) (Formats: `yyyy-MM-dd`, `yyyy-MM-ddThh:mm:ss`, `yyyy-MM-ddThh:mm:ssZ`).'
schema:
$ref: '#/components/schemas/DateParam'
example: '2020-04-06T12:48:40Z'
- name: toDate
in: query
description: 'The end of the period of the search `toDate` included (i.e. less than) (Formats: `yyyy-MM-dd`, `yyyy-MM-ddThh:mm:ss`, `yyyy-MM-ddThh:mm:ssZ`).'
schema:
$ref: '#/components/schemas/DateParam'
example: '2020-05-07T12:48:40Z'
- name: dateType
in: query
description: It determines the date to be considered for `fromDate` and `toDate` parameters.
schema:
$ref: '#/components/schemas/SearchPurchaseDateType'
example: COMPLETED_TIME
- name: status
in: query
description: The status of the `Purchase`.
schema:
type: array
description: The status of the `Purchase`.
items:
$ref: '#/components/schemas/PurchaseStatus'
example: ACTIVE
- name: text
in: query
description: A simple text to search in the `Purchase` data (`title`, `description`, `assignees`).
schema:
type: string
description: A simple text to search in the `Purchase` data (`title`, `description`, `assignees`).
example: something
example: something
- name: p
in: query
description: It indicates the specific page to display (the counter starts from zero).
schema:
type: integer
format: int32
default: 0
description: It indicates the specific page to display (the counter starts from zero).
example: 3
example: 3
- name: s
in: query
description: It indicates the number of items per page.
schema:
type: integer
format: int32
default: 0
description: It indicates the number of items per page.
example: 25
maximum: 50
example: 25
- name: d
in: query
description: It indicates how the pages are ordered.
schema:
$ref: '#/components/schemas/Direction'
example: DESC
- name: props
in: query
description: It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the `props` parameter in the request.
schema:
type: array
description: It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the `props` parameter in the request.
example: creationTime
items:
type: string
description: It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the `props` parameter in the request.
example: creationTime
example: creationTime
responses:
'200':
description: The result is an array containing `Purchases`.
content:
application/json:
schema:
$ref: '#/components/schemas/Purchases'
'400':
description: Your request has missing arguments or is malformed.
security:
- standardAuth:
- purchase_read
post:
tags:
- Pre-approved Spend
summary: Add Purchase
description: Endpoint to add a new `Purchase`.
operationId: pre-approved-spend-add
parameters:
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Advanced authentication](ref:advanced-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this endpoint.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Advanced authentication](ref:advanced-authentication): Signature of the `X-Soldo-Fingerprint`.'
example: '{{fingerprint_signature}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePurchase'
responses:
'200':
description: The returned resource is a single `Purchase`.
content:
application/json:
schema:
$ref: '#/components/schemas/Purchase'
'400':
description: Your request has missing arguments or is malformed.
security:
- standardAuth:
- purchase_write
x-soldo:
fingerprint-order: title, assignee_id, wallet_id, amount, description, max_tx_number, token
/business/v2/purchases/{purchaseId}:
get:
tags:
- Pre-approved Spend
summary: Get Purchases
description: Endpoint to get a specific `Purchase` by ID.
operationId: pre-approved-spend-get
parameters:
- name: purchaseId
in: path
required: true
schema:
type: string
description: The `Purchase` ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
responses:
'200':
description: The returned resource is a single `Purchase`.
content:
application/json:
schema:
$ref: '#/components/schemas/Purchase'
'400':
description: Your request has missing arguments or is malformed.
security:
- standardAuth:
- purchase_read
put:
tags:
- Pre-approved Spend
summary: Update Purchase
description: Endpoint to update a specific `Purchase`.
operationId: pre-approved-spend-update
parameters:
- name: purchaseId
in: path
required: true
schema:
type: string
description: The `Purchase` ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Advanced authentication](ref:advanced-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this endpoint.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Advanced authentication](ref:advanced-authentication): Signature of the `X-Soldo-Fingerprint`.'
example: '{{fingerprint_signature}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePurchase'
responses:
'200':
description: The returned resource is a single `Purchase`.
content:
application/json:
schema:
$ref: '#/components/schemas/Purchase'
'400':
description: Your request has missing arguments or is malformed.
security:
- standardAuth:
- purchase_write
x-soldo:
fingerprint-order: purchaseId, title, description, max_tx_number, token
delete:
tags:
- Pre-approved Spend
summary: Delete Purchase
description: Endpoint to delete a specific `Purchase`.
operationId: pre-approved-spend-delete
parameters:
- name: purchaseId
in: path
required: true
schema:
type: string
description: The `Purchase` ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
responses:
'204':
description: No content as result.
'400':
description: Your request has missing arguments or is malformed.
security:
- standardAuth:
- purchase_write
/business/v2/purchases/{purchaseId}/redeem:
post:
tags:
- Pre-approved Spend
summary: Redeem Purchase
description: Endpoint to redeem a `Purchase`.
operationId: pre-approved-spend-redeem
parameters:
- name: purchaseId
in: path
required: true
schema:
type: string
description: The `Purchase` ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Advanced authentication](ref:advanced-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this endpoint.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Advanced authentication](ref:advanced-authentication): Signature of the `X-Soldo-Fingerprint`.'
example: '{{fingerprint_signature}}'
responses:
'200':
description: The returned resource is a single `Order`.
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'400':
description: Your request has missing arguments or is malformed.
security:
- standardAuth:
- purchase_write
x-soldo:
fingerprint-order: purchaseId, token
webhooks:
purchase_redeem_card:
post:
tags:
- Pre-approved Spend
summary: Pre-Approved Spend - Purchase Redeem Card
description: A `Card` of purchase has been redeemed.
operationId: webhook-preapprovedspend-purchase-redeem-card
parameters:
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Webhook authentication](ref:webhook-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this webhook.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Order
in: header
required: true
schema:
type: string
default: id, title, description, amount, amountCurrency
description: '[Webhook authentication](ref:webhook-authentication): The order of the values used to calculate the fingerprint.'
example: id, title, description, amount, amountCurrency
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Webhook authentication](ref:webhook-authentication): Signature of the `X-Soldo-Fingerprint`. It must be verified using the [Soldo public key](ref:soldo-public-key).'
example: '{{fingerprint_signature}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PurchaseRedeemCardEvent'
responses:
'200':
description: Success.
x-soldo:
fingerprint-order: id, title, description, amount, amountCurrency
purchase_delete:
post:
tags:
- Pre-approved Spend
summary: Pre-Approved Spend - Purchase Delete
description: A `Purchase` has been deleted.
operationId: webhook-preapprovedspend-purchase-delete
parameters:
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Webhook authentication](ref:webhook-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this webhook.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Order
in: header
required: true
schema:
type: string
default: id, title, description, amount, amountCurrency
description: '[Webhook authentication](ref:webhook-authentication): The order of the values used to calculate the fingerprint.'
example: id, title, description, amount, amountCurrency
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Webhook authentication](ref:webhook-authentication): Signature of the `X-Soldo-Fingerprint`. It must be verified using the [Soldo public key](ref:soldo-public-key).'
example: '{{fingerprint_signature}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PurchaseDeleteEvent'
responses:
'200':
description: Success.
x-soldo:
fingerprint-order: id, title, description, amount, amountCurrency
purchase_update:
post:
tags:
- Pre-approved Spend
summary: Pre-Approved Spend - Purchase Update
description: A `Purchase` has been updated.
operationId: webhook-preapprovedspend-purchase-update
parameters:
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Webhook authentication](ref:webhook-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this webhook.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Order
in: header
required: true
schema:
type: string
default: id, title, description, amount, amountCurrency
description: '[Webhook authentication](ref:webhook-authentication): The order of the values used to calculate the fingerprint.'
example: id, title, description, amount, amountCurrency
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Webhook authentication](ref:webhook-authentication): Signature of the `X-Soldo-Fingerprint`. It must be verified using the [Soldo public key](ref:soldo-public-key).'
example: '{{fingerprint_signature}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PurchaseUpdateEvent'
responses:
'200':
description: Success.
x-soldo:
fingerprint-order: id, title, description, amount, amountCurrency
purchase_create:
post:
tags:
- Pre-approved Spend
summary: Pre-Approved Spend - Purchase Create
description: A `Purchase` has been created.
operationId: webhook-preapprovedspend-purchase-create
parameters:
- name: X-Soldo-Fingerprint
in: header
required: true
schema:
type: string
default: '{{fingerprint}}'
description: '[Webhook authentication](ref:webhook-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this webhook.'
example: '{{fingerprint}}'
- name: X-Soldo-Fingerprint-Order
in: header
required: true
schema:
type: string
default: id, title, description, amount, amountCurrency
description: '[Webhook authentication](ref:webhook-authentication): The order of the values used to calculate the fingerprint.'
example: id, title, description, amount, amountCurrency
- name: X-Soldo-Fingerprint-Signature
in: header
required: true
schema:
type: string
default: '{{fingerprint_signature}}'
description: '[Webhook authentication](ref:webhook-authentication): Signature of the `X-Soldo-Fingerprint`. It must be verified using the [Soldo public key](ref:soldo-public-key).'
example: '{{fingerprint_signature}}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PurchaseCreateEvent'
responses:
'200':
description: Success.
x-soldo:
fingerprint-order: id, title, description, amount, amountCurrency
components:
schemas:
CreatePurchase:
description: Create `Purchase` JSON parameters.
properties:
title:
type: string
description: The name of the `Purchase`.
example: Tech book
assignee_id:
type: string
description: The ID of the `User` assigned to the `Purchase`.
example: XMPL1234-000003
amount:
type: number
description: The maximum spendable amount of the `Purchase`.
example: 10.25
description:
type: string
description: The description of the `Purchase`.
example: A purchase to approve
wallet_id:
type: string
description: The ID of the `Wallet` the money are taken from, the funding source of the `Purchase`.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
notes:
type: string
description: The notes of the `Purchase`.
example: Notes about the purchase request
max_tx_number:
type: integer
format: int32
default: '1'
description: The total number of `Transactions` the temporary virtual `Card` can make.
example: 3
required:
- amount
- assignee_id
- description
- max_tx_number
- title
- wallet_id
PurchaseCreateEvent:
properties:
event_uuid:
type: string
description: The webhook unique ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
event_type:
$ref: '#/components/schemas/WebhookEventType'
default: Purchase
description: The webhook event type.
example: Purchase
event_name:
$ref: '#/components/schemas/WebhookEventName'
default: purchase_create
description: The webhook event name.
example: purchase_create
company_account_id:
type: string
description: The company account ID.
example: XMPL1234
data:
$ref: '#/components/schemas/Purchase'
description: The webhook `Purchase` data.
subscription_id:
type: string
description: The webhook subscription ID used to route this event.
example: 2d65bd5e-3fdf-4002-b166-bde7fb8863fa
DateParam:
description: 'The end of the period of the search `toDate` included (i.e. less than) (Formats: `yyyy-MM-dd`, `yyyy-MM-ddThh:mm:ss`, `yyyy-MM-ddThh:mm:ssZ`).'
example: '1970-01-30'
ISO4217Currency:
type: string
enum:
- AED
- AFN
- ALL
- AMD
- ANG
- AOA
- ARS
- AUD
- AWG
- AZN
- BAM
- BBD
- BDT
- BGN
- BHD
- BIF
- BMD
- BND
- BOB
- BOV
- BRL
- BSD
- BTN
- BWP
- BYN
- BZD
- CAD
- CDF
- CHE
- CHF
- CHW
- CLF
- CLP
- CNY
- COP
- COU
- CRC
- CUC
- CUP
- CVE
- CZK
- DJF
- DKK
- DOP
- DZD
- EGP
- ERN
- ETB
- EUR
- FJD
- FKP
- GBP
- GEL
- GHS
- GIP
- GMD
- GNF
- GTQ
- GYD
- HKD
- HNL
- HRK
- HTG
- HUF
- IDR
- ILS
- INR
- IQD
- IRR
- ISK
- JMD
- JOD
- JPY
- KES
- KGS
- KHR
- KMF
- KPW
- KRW
- KWD
- KYD
- KZT
- LAK
- LBP
- LKR
- LRD
- LSL
- LYD
- MAD
- MDL
- MGA
- MKD
- MMK
- MNT
- MOP
- MRO
- MRU
- MUR
- MVR
- MWK
- MXN
- MXV
- MYR
- MZN
- NAD
- NGN
- NIO
- NOK
- NPR
- NZD
- OMR
- PAB
- PEN
- PGK
- PHP
- PKR
- PLN
- PYG
- QAR
- RON
- RSD
- RUB
- RWF
- SAR
- SBD
- SCR
- SDG
- SEK
- SGD
- SHP
- SLE
- SLL
- SOS
- SRD
- SSP
- STD
- STN
- SVC
- SYP
- SZL
- THB
- TJS
- TMT
- TND
- TOP
- TRY
- TTD
- TWD
- TZS
- UAH
- UGX
- USD
- USN
- UYI
- UYU
- UYW
- UZS
- VED
- VEF
- VES
- VND
- VUV
- WST
- XAF
- XAG
- XAU
- XBA
- XBB
- XBC
- XBD
- XCD
- XDR
- XOF
- XPD
- XPF
- XPT
- XSU
- XTS
- XUA
- XXX
- YER
- ZAR
- ZMW
- ZWL
Purchases:
properties:
total:
type: integer
format: int32
description: It represents the total number of available items in the list.
example: 168
pages:
type: integer
format: int32
description: It represents the total number of available pages.
example: 7
page_size:
type: integer
format: int32
description: It represents the number of items per page.
example: 25
current_page:
type: integer
format: int32
description: It indicates the current page (the counter starts from zero).
example: 0
results_size:
type: integer
format: int32
description: It indicates the size of the array results.
example: 25
results:
type: array
items:
$ref: '#/components/schemas/Purchase'
WebhookEventType:
type: string
enum:
- BusinessTrip
- Card
- Contact
- ExpenseReview
- Group
- OnlineAds
- Order
- Purchase
- Subscription
- Transaction
- TransactionAttachment
- Employee
- Vehicle
- Wallet
PurchaseRedeemCardEvent:
properties:
event_uuid:
type: string
description: The webhook unique ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
event_type:
$ref: '#/components/schemas/WebhookEventType'
default: Purchase
description: The webhook event type.
example: Purchase
event_name:
$ref: '#/components/schemas/WebhookEventName'
default: purchase_redeem_card
description: The webhook event name.
example: purchase_redeem_card
company_account_id:
type: string
description: The company account ID.
example: XMPL1234
data:
$ref: '#/components/schemas/Purchase'
description: The webhook `Purchase` data.
subscription_id:
type: string
description: The webhook subscription ID used to route this event.
example: 2d65bd5e-3fdf-4002-b166-bde7fb8863fa
PurchaseDeleteEvent:
properties:
event_uuid:
type: string
description: The webhook unique ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
event_type:
$ref: '#/components/schemas/WebhookEventType'
default: Purchase
description: The webhook event type.
example: Purchase
event_name:
$ref: '#/components/schemas/WebhookEventName'
default: purchase_delete
description: The webhook event name.
example: purchase_delete
company_account_id:
type: string
description: The company account ID.
example: XMPL1234
data:
$ref: '#/components/schemas/Purchase'
description: The webhook `Purchase` data.
subscription_id:
type: string
description: The webhook subscription ID used to route this event.
example: 2d65bd5e-3fdf-4002-b166-bde7fb8863fa
PurchaseStatus:
type: string
enum:
- SUCCESSFUL
- ACTIVE
- ASSIGNED
- DELETED
- EXPIRED
- REQUEST_EXTENSION
Purchase:
properties:
id:
type: string
description: 'The `Purchase` ID (sortable: no).'
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
status:
$ref: '#/components/schemas/PurchaseStatus'
description: 'The status of the `Purchase` (sortable: no).'
example: ASSIGNED
title:
type: string
description: 'The name of the `Purchase` (sortable: no).'
example: Tech book
description:
type: string
description: 'The description of the `Purchase` (sortable: no).'
example: A purchase to approve
amount:
type: number
description: 'The maximum spendable amount of the `Purchase` (sortable: no).'
example: 10.25
amount_currency:
$ref: '#/components/schemas/ISO4217Currency'
description: 'The currency of the `Purchase` ([ISO 4217](https://www.six-group.com/en/products-services/financial-information/data-standards.html#scrollTo=maintenance-agency) code) (sortable: no).'
example: EUR
wallet_id:
type: string
description: 'The ID of the `Wallet` the money are taken from, the funding source of the `Purchase` (sortable: no).'
example: 2d65bd5e-3fdf-4002-b166-bde7fb8863fa
wallet_name:
type: string
description: 'The name of the `Wallet` the money are taken from, the funding source of the `Purchase` (sortable: no).'
example: John Doe
has_attachments:
type: boolean
description: 'It determines whether the `Purchase` has one or more attachments (sortable: no).'
example: true
notes:
type: string
description: 'The notes of the `Purchase` (sortable: no).'
example: Notes about the purchase request
assignee_id:
type: string
description: 'The ID of the `User` assigned to the `Purchase` (sortable: no).'
example: XMPL1234-000003
additional_assignee_ids:
type: array
description: 'The IDs of any additional `User` assigned to the `Purchase` (sortable: no).'
example: XMPL1234-000003
items:
type: string
uniqueItems: true
assignee_custom_reference_id:
type: string
description: 'The custom reference of the `User` assigned to the `Purchase` (sortable: no).'
example: 123456-user-1
author_id:
type: string
description: 'The ID of the `User` that created the `Purchase` (sortable: no).'
example: XMPL1234-000001
author_custom_reference_id:
type: string
description: 'The custom reference of the `User` that created the purchase (sortable: no).'
example: 123456-user-2
expiration_date:
type: string
description: 'The date and time when the `Purchase` will expire (sortable: no).'
example: '2017-06-01T12:48:40Z'
card_id:
type: string
description: 'The ID of the `Card` assigned to the `Purchase`, only available after the redemption `Order` has been completed (sortable: no).'
example: 2d65bd5e-3fdf-4002-b166-bde7fb8863fa
transactions:
type: array
description: 'The `Transactions` originated by the `Purchase` (sortable: no).'
items:
$ref: '#/components/schemas/PurchaseTransaction'
max_tx_number:
type: integer
format: int32
description: The max number of the `Transactions` that can be made with the `Card`.
example: 3
creation_time:
type: string
description: 'The date and time when the `Purchase` was created (sortable: yes).'
example: '2017-06-01T12:48:40Z'
last_update_time:
type: string
description: 'The date and time when the `Purchase` was last updated (sortable: yes).'
example: '2017-06-01T12:48:40Z'
SearchPurchaseDateType:
type: string
description: It determines the date to be considered for `fromDate` and `toDate` parameters.
enum:
- CREATION_TIME
- COMPLETED_TIME
example: COMPLETED_TIME
OrderStatus:
type: string
enum:
- PENDING
- ERROR
- PLACED
- CANCELLED
- COMPLETED
- COMPLETED_WITH_CREDIT
Direction:
type: string
description: It indicates how the pages are ordered.
enum:
- ASC
- DESC
example: DESC
PurchaseUpdateEvent:
properties:
event_uuid:
type: string
description: The webhook unique ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
event_type:
$ref: '#/components/schemas/WebhookEventType'
default: Purchase
description: The webhook event type.
example: Purchase
event_name:
$ref: '#/components/schemas/WebhookEventName'
default: purchase_update
description: The webhook event name.
example: purchase_update
company_account_id:
type: string
description: The company account ID.
example: XMPL1234
data:
$ref: '#/components/schemas/Purchase'
description: The webhook `Purchase` data.
subscription_id:
type: string
description: The webhook subscription ID used to route this event.
example: 2d65bd5e-3fdf-4002-b166-bde7fb8863fa
OrderItem:
properties:
id:
type: string
description: The ID of a single item of a specific `Order`.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
item_type:
type: string
description: The type of the ordered item.
example: CARD
category:
type: string
description: The category of the ordered item.
Order:
properties:
id:
type: string
description: The `Order` ID.
example: 7bf79328-a7ae-4222-aa54-091ff7f429a7
status:
$ref: '#/components/schemas/OrderStatus'
description: The status of the `Order`.
example: PENDING
creation_time:
type: string
description: The date and time when the `Order` was created.
example: '2017-06-01T12:48:40Z'
last_update_time:
type: string
description: The last update date of the `Order`.
example: '2017-06-01T12:48:40Z'
error_code:
type: string
description: In case is_valid is false, the error code of the `Order` is shown.
total_paid_amount:
type: number
description: The total amount of the `Order`.
example: 10.25
total_paid_currency:
$ref: '#/components/schemas/ISO4217Currency'
description: The currency for the total paid amount.
example: EUR
items:
type: array
description: The products associated with the `Order`.
items:
$ref: '#/components/schemas/OrderItem'
is_valid:
type: boolean
description: It states wh
# --- truncated at 32 KB (39 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/soldo/refs/heads/main/openapi/soldo-pre-approved-spend-api-openapi.yml