Tài liệu tham khảo API

commerce

Có 22 điểm cuối trong khu vực này. Mỗi điểm cuối có một trang riêng với các tham số, phản hồi và yêu cầu mà quý vị có thể thực hiện.

Tất cả tài liệu dành cho nhà phát triển →

Phương thứcĐường dẫnChức năngQuyền
POST/v1/cartsOpen a shopping cart.billing.payment.manage
POST/v1/carts/adoptCarry a guest basket into the signed-in account.billing.payment.manage
GET/v1/carts/{cartId}Get a cart.billing.payment.manage
POST/v1/carts/{cartId}/checkoutCheck out a cart — place and charge an order.billing.payment.manage
POST/v1/carts/{cartId}/linesAdd a line to a cart.billing.payment.manage
DELETE/v1/carts/{cartId}/lines/{lineId}Remove a line from a cart.billing.payment.manage
GET/v1/order/config/{planCode}Everything a signed-in customer configures for one plan.billing.view
GET/v1/ordersList orders in scope.billing.view
GET/v1/orders/{orderId}Get an order.billing.view
POST/v1/orders/{orderId}/customer-actionReopen the checkout for a payment that is waiting on the customer.billing.payment.manage
POST/v1/orders/{orderId}/payPay an order that was placed but not charged.billing.payment.manage
GET/v1/orders/{orderId}/payment-optionsThe payment gateways this order may be settled on.billing.payment.manage
POST/v1/orders/{orderId}/payment-step-abandonedTell staff the customer left an in-place payment step without paying.billing.payment.manage
POST/v1/orders/{orderId}/paypalOpen a PayPal order for the browser to complete.billing.payment.manage
POST/v1/orders/{orderId}/paypal/captureCapture a PayPal order the buyer completed.billing.payment.manage
GET/v1/orders/{orderId}/refund-eligibilityPreview an order's refund eligibility.billing.view
POST/v1/orders/{orderId}/refund-requestRequest a refund for an order.billing.payment.manage
GET/v1/payment-optionsThe payment rails a purchase in this currency may be settled on.billing.payment.manage
GET/v1/refund-requestsList the organization's refund requests.billing.view
GET/v1/refund-requests/{refundRequestId}Get a refund request.billing.view
POST/v1/refund-requests/{refundRequestId}/approveApprove a pending refund request (staff).billing.refund
POST/v1/refund-requests/{refundRequestId}/rejectReject a pending refund request (staff).billing.refund