DogPay Physical Cards API
The Physical Cards API from DogPay — 6 operation(s) for physical cards.
The Physical Cards API from DogPay — 6 operation(s) for physical cards.
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/dogpay-com:dogpay-com-physical-cards-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: CaaS Physical Cards API
description: '## Start here: card issuance
All paths below are relative to **/open-api/v1**. Use your configured CaaS API credentials. For a child account, send the same **dgp-entity-id** throughout discovery, preparation, issuance and queries. Do not send accountId in the request body to select an account. ### 1. Discover the product and its flow
Call **GET /cards/bins** (the card channel/product list). Select a product and inspect
**issuance.virtual** or **issuance.physical** for the requested card form:
| Value | What to do |
| --- | --- |
| null | This card form is not supported. Select another product. |
| requiresPreparation=false | No independent preparation step is required. Continue with the advertised flow. |
| requiresPreparation=true | Complete GET /cards/preparation and its required steps before issuance. |
| flow=standard | Use POST /cards. c_015 virtual cards use this flow. |
| flow=application | Use the physical quote/apply flow below. c_015 physical cards use this flow. |
The product''s **id** is named **cardChannelId** in preparation/physical quote requests, but **channelId** in POST /cards. Capabilities describe implemented flows; they do not reserve funds, stock or bank approval. ### 2. Create or reuse the local cardholder
Use **GET /card-holders** to find an existing holder, **POST /card-holders** to create one,
or **PUT /card-holders** with its id to correct local details. Save the returned holder id as **cardHolderId**. For c_015 enterprise holders, provide valid names, email, phone number and calling code before preparation. Creating a local holder is NOT bank approval. This flow does not use the legacy holder register endpoint. ### 3. Complete preparation (when required)
Call **GET /cards/preparation?cardChannelId=UUID&cardType=virtual&cardHolderId=UUID**;
use cardType=physical for physical cards. The default cardType is virtual. The channel list''s preparation.requiredContextFields describes extra query context, NOT the material fields to submit. If context is missing, fill **missingContextFields** and query again; no preparation record or form URL is created yet. Read **steps**, **requirements**, **description**, **revision**, **nextAction** and form availability. Use **steps[].type + steps[].id** for follow-up operations. The current type is **holder**;
do not send form.type=c_015-holder as the preparation type. | Method | Sequence |
| --- | --- |
| Hosted H5 | POST /cards/preparation/form-url with type, id, action=edit; open the returned url immediately; the user submits in H5; query preparation again. |
| Direct API | Upload required files using POST /cards/preparation/files (multipart); use returned fileId values in POST /cards/preparation/submit with type, id, revision and the complete values snapshot; query preparation again. |
| Read-only preview | When canPreview=true, POST /cards/preparation/form-url with action=preview. The URL is single-use and cannot edit or submit. |
Only request a URL when the user opens it. Editing is subject to current business state; canEdit is not permanent permission. All material DTO fields may be optional individually; requirements defines conditional mandatory fields and formats. Submission is a full snapshot, not PATCH. There is no API draft step. A successful submission is NOT bank approval. | Preparation result | Next action |
| --- | --- |
| isPrepared=true | All required independent steps are ready; proceed with issuance. |
| COMPLETE_FORM | Complete/correct materials when editing is allowed. |
| WAIT or RETRY | Wait until retryAfter when supplied, then query preparation again. Do not blindly resubmit. |
| CONTACT_SUPPORT | Follow feedback and contact support; do not create replacement holders to bypass the error. |
Changing local names/contact details does not update an already registered bank identity. On identity mismatch, use preview to compare records, restore the original local details or contact support.'
version: 3.6.1
contact: {}
servers:
- url: https://sandbox-api-v2.dogpay.com/
description: Sandbox
security:
- bearer: []
tags:
- name: Physical Cards
paths:
/open-api/v1/cards/physical/activate:
post:
operationId: OpenApiPhysicalCardController_activateApiPhysicalCard
summary: Activate physical card
description: 'Activate using the bank code received by webhook and encrypted user-selected PIN; acceptance is not final card activation
Permission: card.physical.operate. Prerequisites: confirmed binding and activation code received by webhook. The user chooses the six-digit PIN. Encrypt ApiPhysicalActivatePayload using CardDataEncryption; send encrypted/iv/tag. Next: query /cards/physical/operation and application/card status until activation is confirmed. Request acceptance or application status bound does not mean active. Do not resubmit pending/unknown operations.'
parameters:
- name: dgp-entity-id
in: header
description: Only white-label customer need to use it
required: false
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApiPhysicalEncryptedInput'
responses:
'200':
description: ''
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/ApiPhysicalOperationOutput'
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- $ref: '#/components/schemas/ApiSuccessResponse'
type: object
tags:
- Physical Cards
/open-api/v1/cards/physical/application:
get:
operationId: OpenApiPhysicalCardController_getApiPhysicalApplication
summary: Get physical application
description: 'Get physical application, refund, shipping and bank operation state by applicationId or callId
Permission: card.physical.read. Query with exactly one of applicationId or merchant callId. Returns review/refund/shipping/card/operation states and nextAction; complete recipient details are not returned here. Listen for card.physical.application.update and refresh this resource. shipped permits binding after receipt; bound does not mean activated. pending/unknown operations must be queried, not resubmitted.'
parameters:
- name: dgp-entity-id
in: header
description: Only white-label customer need to use it
required: false
schema:
type: string
- name: applicationId
required: false
in: query
description: Provide exactly one of applicationId and callId
schema:
format: uuid
type: string
- name: callId
required: false
in: query
description: Merchant reference supplied when confirming the application
schema:
maxLength: 50
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/ApiPhysicalApplicationOutput'
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- $ref: '#/components/schemas/ApiSuccessResponse'
type: object
tags:
- Physical Cards
/open-api/v1/cards/physical/bind:
post:
operationId: OpenApiPhysicalCardController_bindApiPhysicalCard
summary: Bind physical card
description: 'Bind the received PAN to the application holder; irreversible. Query operation after ambiguous results.
Permission: card.physical.operate. Prerequisites: shipped application, actual receipt, end-user identity verification and eligible HTTPS activation-code webhook. Binding is irreversible. Encrypt ApiPhysicalBindPayload using CardDataEncryption (API Key-derived AES-256-GCM); send encrypted/iv/tag, no plaintext or challenge request. Next: query /cards/physical/operation and receive card.physical.activation.code. Both successful binding and the code are required before activation; do not rebind on pending/unknown.'
parameters:
- name: dgp-entity-id
in: header
description: Only white-label customer need to use it
required: false
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApiPhysicalEncryptedInput'
responses:
'200':
description: ''
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/ApiPhysicalOperationOutput'
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- $ref: '#/components/schemas/ApiSuccessResponse'
type: object
tags:
- Physical Cards
/open-api/v1/cards/physical/operation:
get:
operationId: OpenApiPhysicalCardController_getApiPhysicalOperation
summary: Get physical operation
description: 'Query one physical operation or the latest operation; null if none exists
Permission: card.physical.read. Query cardId and optionally operationId; omission returns the latest physical operation. Poll pending/unknown; completed confirms only this operation. For bind failure contact support instead of reassigning a PAN. After activation completion, confirm active card status using /cards/physical/application.'
parameters:
- name: dgp-entity-id
in: header
description: Only white-label customer need to use it
required: false
schema:
type: string
- name: cardId
required: true
in: query
description: Local card ID returned after application confirmation
schema:
format: uuid
type: string
- name: operationId
required: false
in: query
description: If omitted, returns the most recent physical operation for this card
schema:
format: uuid
type: string
- name: callId
required: false
in: query
description: Creation callId. Returns the latest operation, or null before binding; cannot combine with operationId.
schema:
maxLength: 50
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/ApiPhysicalOperationOutput'
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- $ref: '#/components/schemas/ApiSuccessResponse'
type: object
tags:
- Physical Cards
/open-api/v1/cards/physical/quote:
post:
operationId: OpenApiPhysicalCardController_quoteApiPhysicalCard
summary: Quote physical card
description: 'Quote a single physical card and delivery; no funds or inventory reserved
Permission: card.physical.create. Prerequisite: physical preparation ready. Submit cardChannelId, cardHolderId, shippingAddress and optional budgetId/language. Returns applicationId, createFee/shippingFee/totalFee (USD strings), address snapshot and expiresAt. Valid for 15 minutes; no debit or reservation. Next: obtain user fee confirmation, then POST /cards/physical/apply. Changed address or expired quote requires a new quote.'
parameters:
- name: dgp-entity-id
in: header
description: Only white-label customer need to use it
required: false
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApiPhysicalQuoteInput'
responses:
'200':
description: ''
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/ApiPhysicalApplicationOutput'
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- $ref: '#/components/schemas/ApiSuccessResponse'
type: object
tags:
- Physical Cards
/open-api/v1/cards/shipping/group:
post:
operationId: OpenApiCardController_careteShippingGroup
summary: Create bulk shipping group resource
description: 'Create physical cards with this shipping group information to send multiple physical cards together. Note: 1. Bulk shipping resources expire at 8:00 PM Beijing time every day. If unused, the system will refund the shipping fee after 8:00 PM Beijing time. If used after expiration, card creation will fail. Please use it in time.'
parameters:
- name: dgp-entity-id
in: header
description: Only white-label customer need to use it
required: false
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OpenApiCreateShippingGroupInput'
responses:
'200':
description: ''
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiSuccessResponse'
- $ref: '#/components/schemas/ApiSuccessResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/OpenApiShippingGroupOutput'
required:
- data
properties:
data:
$ref: '#/components/schemas/OpenApiShippingGroupOutput'
type: object
tags:
- Physical Cards
components:
schemas:
ApiPhysicalEncryptedInput:
type: object
properties:
encrypted:
type: string
description: Hex AES-256-GCM ciphertext produced by the existing CardDataEncryption protocol. Encrypt the complete ApiPhysicalBindPayload or ApiPhysicalActivatePayload JSON; never send plaintext fields alongside this envelope.
maxLength: 4096
iv:
type: string
description: 16-byte IV, encoded as 32 hexadecimal characters
minLength: 32
maxLength: 32
tag:
type: string
description: 16-byte GCM authentication tag, encoded as 32 hexadecimal characters
minLength: 32
maxLength: 32
required:
- encrypted
- iv
- tag
ApiPhysicalQuoteInput:
type: object
properties:
cardChannelId:
type: string
format: uuid
description: Card product configuration ID returned by the available card bins API
cardHolderId:
type: string
format: uuid
description: Owned local holder ID with approved bank preparation
shippingAddress:
description: Complete delivery address; independent of KYC residence and App saved address
allOf:
- $ref: '#/components/schemas/PhysicalRecipientInput'
budgetId:
type: string
format: uuid
language:
type: string
enum:
- en
- zh
- zh_Hant
- pt
- es
- fr
- ko
- ja
- ar
- hi
- id
- pl
- ro
- th
- tr
- ur
- vi
- ms
- de
- it
- ru
- nl
- el
- he
- sv
- cs
- hu
- fi
- da
- 'no'
- uk
- bn
- fa
- tl
default: en
description: Recipient language for review and notifications
fulfillmentMode:
type: string
enum:
- platform_delivery
default: platform_delivery
description: Only platform_delivery needs a quote before POST /cards. Merchant-stock cards use POST /cards without a quote.
required:
- cardChannelId
- cardHolderId
- shippingAddress
ApiPhysicalOperationOutput:
type: object
properties:
operationId:
type: string
format: uuid
type:
type: string
enum:
- assign_physical_card
- activate_physical_card
- reset_physical_pin
- create_virtual_card
- virtual_to_physical
status:
type: string
enum:
- pending
- unknown
- completed
- failed
description: 'pending/unknown are unresolved: query instead of resubmitting. completed confirms this operation only.'
cardId:
type: string
format: uuid
cardStatus:
type: string
enum:
- active
- deleted
- frozen
- opening
- reviewing
- rejected
- processing
- pre_delete
- expired
physicalStatus:
type: string
enum:
- active
- processing
createFee:
type: string
description: Committed direct-card opening fee snapshot in USD.
currency:
type: string
enum:
- USD
paymentStatus:
type: string
enum:
- charged
description: Direct card and debit committed together; zero fee also completes the charge step.
nextAction:
type: string
enum:
- wait_bank
- contact_support
- activate
- none
required:
- status
OpenApiCreateShippingGroupInput:
type: object
properties:
channelId:
type: string
description: shipping card bin id
shippingAddress:
description: Shipping Address
type: object
allOf:
- $ref: '#/components/schemas/DeliveryAddressDto'
required:
- channelId
- shippingAddress
PhysicalRecipientInput:
type: object
properties:
firstName:
type: string
description: Recipient first name
maxLength: 50
lastName:
type: string
description: Recipient last name; empty string allowed
maxLength: 50
phoneCode:
type: string
description: International phone area code, without the phone number
maxLength: 10
phoneNumber:
type: string
description: Phone number without the international area code
maxLength: 20
country:
type: string
description: Uppercase ISO 3166-1 alpha-2 shipping country
maxLength: 2
enum:
- AF
- AL
- DZ
- AS
- AD
- AO
- AI
- AQ
- AG
- AR
- AM
- AW
- AU
- AT
- AZ
- BS
- BH
- BD
- BB
- BY
- BE
- BZ
- BJ
- BM
- BT
- BO
- BA
- BW
- BV
- BR
- IO
- BN
- BG
- BF
- BI
- KH
- CM
- CA
- CV
- KY
- CF
- TD
- CL
- CN
- CX
- CC
- CO
- KM
- CG
- CD
- CK
- CR
- CI
- HR
- CU
- CY
- CZ
- DK
- DJ
- DM
- DO
- EC
- EG
- SV
- GQ
- ER
- EE
- ET
- FK
- FO
- FJ
- FI
- FR
- GF
- PF
- TF
- GA
- GM
- GE
- DE
- GH
- GI
- GR
- GL
- GD
- GP
- GU
- GT
- GN
- GW
- GY
- HT
- HM
- VA
- HN
- HK
- HU
- IS
- IN
- ID
- IR
- IQ
- IE
- IL
- IT
- JM
- JP
- JO
- KZ
- KE
- KI
- KP
- KR
- KW
- KG
- LA
- LV
- LB
- LS
- LR
- LY
- LI
- LT
- LU
- MO
- MG
- MW
- MY
- MV
- ML
- MT
- MH
- MQ
- MR
- MU
- YT
- MX
- FM
- MD
- MC
- MN
- MS
- MA
- MZ
- MM
- NA
- NR
- NP
- NL
- NC
- NZ
- NI
- NE
- NG
- NU
- NF
- MP
- MK
- 'NO'
- OM
- PK
- PW
- PS
- PA
- PG
- PY
- PE
- PH
- PN
- PL
- PT
- PR
- QA
- RE
- RO
- RU
- RW
- SH
- KN
- LC
- PM
- VC
- WS
- SM
- ST
- SA
- SN
- SC
- SL
- SG
- SK
- SI
- SB
- SO
- ZA
- GS
- ES
- LK
- SD
- SR
- SJ
- SZ
- SE
- CH
- SY
- TW
- TJ
- TZ
- TH
- TL
- TG
- TK
- TO
- TT
- TN
- TR
- TM
- TC
- TV
- UG
- UA
- AE
- GB
- US
- UM
- UY
- UZ
- VU
- VE
- VN
- VG
- VI
- WF
- EH
- YE
- ZM
- ZW
- AX
- BQ
- CW
- GG
- IM
- JE
- ME
- BL
- MF
- RS
- SX
- SS
- XK
state:
type: string
description: Shipping state or province
maxLength: 20
city:
type: string
description: Shipping city
maxLength: 20
postCode:
type: string
description: Shipping postal code
maxLength: 12
line1:
type: string
description: Shipping address line 1
maxLength: 40
line2:
type: string
description: Shipping address line 2; empty string allowed
maxLength: 40
line3:
type: string
description: Shipping address line 3; empty string allowed
maxLength: 40
required:
- firstName
- phoneCode
- phoneNumber
- country
- state
- city
- postCode
- line1
DeliveryAddressDto:
type: object
properties:
line1:
type: string
description: 'address line 1 '
line2:
type: string
description: address line 2
postCode:
type: string
description: 'postal Code '
city:
type: string
state:
type: string
country:
type: string
description: country, 2-letter ISO code
phoneCode:
type: string
description: Phone Number Area Code
phoneNumber:
type: string
description: Phone Number
shippingMethod:
$ref: '#/components/schemas/ShippingMethodEnum'
firstName:
type: string
description: 'recipient firstName '
lastName:
type: string
description: recipient lastName
required:
- line1
- postCode
- city
- state
- country
- phoneCode
- phoneNumber
- firstName
- lastName
ApiPhysicalApplicationOutput:
type: object
properties:
applicationId:
type: string
format: uuid
callId:
type:
- string
- 'null'
cardId:
type:
- string
- 'null'
format: uuid
cardChannelId:
type: string
format: uuid
cardHolderId:
type: string
format: uuid
budgetId:
type:
- string
- 'null'
format: uuid
status:
type: string
enum:
- quoted
- pending_review
- awaiting_shipment
- shipped
- binding
- bound
- bind_failed
- rejected
cardStatus:
type:
- string
- 'null'
enum:
- active
- deleted
- frozen
- opening
- reviewing
- rejected
- processing
- pre_delete
- expired
- null
physicalStatus:
type:
- string
- 'null'
enum:
- active
- processing
- null
nextAction:
type: string
enum:
- confirm
- requote
- wait_review
- wait_shipment
- bind
- wait_bank
- activate
- contact_support
- none
language:
type: string
currency:
type: string
enum:
- USD
createFee:
type: string
description: Decimal USD amount
shippingFee:
type: string
description: Decimal USD amount
totalFee:
type: string
description: Total decimal USD amount charged on confirmation
paymentStatus:
type: string
enum:
- not_charged
- charged
- refunded
description: Rejection and refund commit atomically; binding failures do not automatically refund dispatched cards
rejectionReason:
type:
- string
- 'null'
shipping:
allOf:
- $ref: '#/components/schemas/ApiPhysicalShippingOutput'
type:
- object
- 'null'
operation:
allOf:
- $ref: '#/components/schemas/ApiPhysicalOperationOutput'
type:
- object
- 'null'
address:
description: Only quote response contains delivery address; never returned in status notifications
allOf:
- $ref: '#/components/schemas/PhysicalRecipientOutput'
type:
- object
- 'null'
expiresAt:
format: date-time
type: string
createdAt:
format: date-time
type: string
updatedAt:
format: date-time
type: string
fulfillmentMode:
type: string
enum:
- platform_delivery
- merchant_stock
required:
- applicationId
- callId
- cardId
- cardChannelId
- cardHolderId
- budgetId
- status
- cardStatus
- physicalStatus
- nextAction
- language
- currency
- createFee
- shippingFee
- totalFee
- paymentStatus
- rejectionReason
- shipping
- operation
- expiresAt
- createdAt
- updatedAt
- fulfillmentMode
ShippingMethodEnum:
type: string
description: Shipping Method
enum:
- uspsInternational
- dhlnternational
ApiSuccessResponse:
type: object
properties:
code:
type: number
description: Response code
message:
type: string
description: Message
timestamp:
type: number
description: Current time timestamp
data:
type: object
description: Data
requestId:
type: string
description: Request ID
required:
- code
- message
- timestamp
- data
- requestId
PhysicalRecipientOutput:
type: object
properties:
firstName:
type: string
lastName:
type: string
phoneCode:
type: string
phoneNumber:
type: string
country:
type: string
state:
type: string
city:
type: string
postCode:
type: string
line1:
type: string
line2:
type: string
line3:
type: string
required:
- firstName
- lastName
- phoneCode
- phoneNumber
- country
- state
- city
- postCode
- line1
OpenApiShippingGroupOutput:
type: object
properties:
id:
type: string
description: shipping group id
expiredTime:
format: date-time
type: string
description: 'shipping group id expired time '
required:
- id
- expiredTime
ApiPhysicalShippingOutput:
type: object
properties:
carrier:
type: string
trackingNumber:
type: string
trackingUrl:
type: string
description: Carrier HTTPS official website; empty string for historical records without a URL
shippedAt:
type:
- string
- 'null'
format: date-time
required:
- carrier
- trackingNumber
- trackingUrl
securitySchemes:
bearer:
type: http
scheme: bearer
x-provenance:
method: searched
source: https://docs.dogpay.com/reference
harvested: '2026-11-16'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://docs.dogpay.com/reference/openapiaccountcontroller_getaccounttrxlist.md
- https://docs.dogpay.com/reference/openapiaccountcontroller_getmasterbalance.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_createbudget.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_deletebudget.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_deletebudgetv2.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_frozenbudget.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_getallbudget.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_getbudgettrxlist.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_unfrozenbudget.md
- https://docs.dogpay.com/reference/openapibudgetcontroller_updatebudget.md
- https://docs.dogpay.com/reference/openapicardcontroller_batchcreatecards.md
- https://docs.dogpay.com/reference/openapicardcontroller_cardtransferaction.md
- https://docs.dogpay.com/reference/openapicardcontroller_careteshippinggroup.md
- https://docs.dogpay.com/reference/openapicardcontroller_countcard.md
- https://docs.dogpay.com/reference/openapicardcontroller_createcards.md
- https://docs.dogpay.com/reference/openapicardcontroller_deletecard.md
- https://docs.dogpay.com/reference/openapicardcontroller_frozencard.md
- https://docs.dogpay.com/reference/openapicardcontroller_getallcards.md
- https://docs.dogpay.com/reference/openapicardcontroller_getcardappendfee.md
# --- truncated at 32 KB (34 KB total) ---
# Full source: https://artifacts.apis.io/dogpay-com/openapi/dogpay-com-physical-cards-api-openapi.yml