- Store API
- Admin API
- Auth
- Batch Jobs
- Currencies
- Customers
- Customer Groups
- Discounts
- Draft Orders
- Gift Cards
- Inventory Items
- Invites
- Notes
- Notifications
- Orders
- Create a Reservation
- Cancel Claim's Fulfillment
- Ship a Claim's Fulfillment
- Cancel Swap's Fulfilmment
- Get Order Reservations
- Add a Shipping Method
- Create a Refund
- Get an Order
- Update an Order
- Create a Fulfillment
- Cancel a Swap
- List Orders
- Create a Swap
- Complete an Order
- Create a Swap Fulfillment
- Cancel a Claim
- Process a Swap Payment
- Ship a Fulfillment
- Capture an Order's Payments
- Archive Order
- Update a Claim
- Request a Return
- Create a Claim Fulfillment
- Ship a Swap's Fulfillment
- Cancel a Fulfilmment
- Create a Claim
- Cancel an Order
- Order Edits
- Payments
- Payment Collections
- Product Collections
- Product Tags
- Product Types
- Product Variants
- Price Lists
- Products
- Product Categories
- Publishable Api Keys
- Reservations
- Regions
- Return Reasons
- Returns
- Sales Channels
- Shipping Options
- Shipping Profiles
- Stock Locations
- Store
- Swaps
- Uploads
- Tax Rates
- Users
- 【Demo】Products
Mark Paid
POST
/admin/draft-orders/{id}/pay
Admin API/Draft OrdersDraft Orders
completed
and create an Order from the draft order. The payment is captured through Medusa's system payment, which is manual payment that isn't integrated with any third-party payment provider. It is assumed that the payment capturing is handled manually by the admin.Request
Path Params
id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/admin/draft-orders//pay'
Responses
🟢200OK
application/json
Body
order
object (Order)
required
id
string
required
Example:
order_01G8TJSYT9M6AVS5N4EMNFS1EK
display_id
integer
required
Example:
2
cart_id
string | null
required
Example:
cart_01G8ZH853Y6TFXWPG5EYE81X63
cart
object | null
optional
customer_id
string
required
Example:
cus_01G2SG30J8C85S4A5CHM2S1NS2
customer
object | null
optional
email
string <email>
required
billing_address_id
string | null
required
Example:
addr_01G8ZH853YPY9B94857DY91YGW
shipping_address_id
string | null
required
Example:
addr_01G8ZH853YPY9B94857DY91YGW
region_id
string
required
Example:
reg_01G1G5V26T9H8Y0M4JNE3YGA4G
tax_rate
number | null
required
Example:
0
draft_order_id
string | null
required
Example:
null
draft_order
object | null
optional
canceled_at
string <date-time> | null
required
no_notification
boolean | null
required
Example:
false
external_id
string | null
required
Example:
null
sales_channel_id
string | null
optional
Example:
null
shipping_total
integer
optional
Example:
1000
raw_discount_total
integer
optional
Example:
800
discount_total
integer
optional
Example:
800
tax_total
integer
optional
Example:
0
refunded_total
integer
optional
Example:
0
total
integer
optional
Example:
8200
subtotal
integer
optional
Example:
8000
paid_total
integer
optional
Example:
8000
refundable_amount
integer
optional
Example:
8200
gift_card_total
integer
optional
Example:
0
gift_card_tax_total
integer
optional
Example:
0
created_at
string <date-time>
required
updated_at
string <date-time>
required
status
enum<string>
required
Allowed values:
pendingcompletedarchivedcanceledrequires_action
Default:
pending
fulfillment_status
enum<string>
required
Allowed values:
not_fulfilledpartially_fulfilledfulfilledpartially_shippedshippedpartially_returnedreturnedcanceledrequires_action
Default:
not_fulfilled
payment_status
enum<string>
required
Allowed values:
not_paidawaitingcapturedpartially_refundedrefundedcanceledrequires_action
Default:
not_paid
currency_code
string
required
Example:
usd
payments
array [object]
optional
fulfillments
array [object]
optional
returns
array [object]
optional
claims
array [object]
optional
refunds
array [object]
optional
swaps
array [object]
optional
edits
array [object]
optional
idempotency_key
string | null
required
metadata
object | null
required
Example:
{"car":"white"}
gift_card_transactions
array[object (Gift Card Transaction) {9}]
optional
currency
object (Currency)
optional
sales_channel
object (Sales Channel)
optional
billing_address
object (Address)
optional
shipping_address
object (Address)
optional
shipping_methods
array[object (Shipping Method) {20}]
optional
region
object (Region)
optional
gift_cards
array[object (Gift Card) {15}]
optional
discounts
array[object (Discount) {18}]
optional
items
array[object (Line Item) {42}]
optional
returnable_items
array[object (Line Item) {42}]
optional
Example
🟠400Client Error or Multiple Errors
🟠401User is not authorized. Must log in first
🟠404Not Found Error
🟠409Invalid State Error
🟠422Invalid Request Error
🔴500Server Error
Modified at 2024-05-23 07:10:14