API குறிப்பு
commerce
இந்தப் பகுதியில் 19 முடிவுப்புள்ளிகள் உள்ளன. ஒவ்வொன்றும் அதன் சொந்த அளவுருக்கள், அதன் பதில் மற்றும் நீங்கள் இயக்கக்கூடிய கோரிக்கையுடன் அதன் சொந்தப் பக்கத்தைக் கொண்டுள்ளது.
| முறை | பாதை | இது என்ன செய்கிறது | அனுமதி |
|---|---|---|---|
| POST | /v1/carts | Open a shopping cart. | billing.payment.manage |
| POST | /v1/carts/adopt | Carry a guest basket into the signed-in account. | billing.payment.manage |
| GET | /v1/carts/{cartId} | Get a cart. | — |
| POST | /v1/carts/{cartId}/checkout | Check out a cart — place and charge an order. | billing.payment.manage |
| POST | /v1/carts/{cartId}/lines | Add a line to a cart. | — |
| DELETE | /v1/carts/{cartId}/lines/{lineId} | Remove a line from a cart. | — |
| GET | /v1/orders | List orders in scope. | billing.view |
| GET | /v1/orders/{orderId} | Get an order. | — |
| POST | /v1/orders/{orderId}/customer-action | Reopen the checkout for a payment that is waiting on the customer. | — |
| POST | /v1/orders/{orderId}/pay | Pay an order that was placed but not charged. | — |
| GET | /v1/orders/{orderId}/payment-options | The payment gateways this order may be settled on. | — |
| POST | /v1/orders/{orderId}/paypal | Open a PayPal order for the browser to complete. | — |
| POST | /v1/orders/{orderId}/paypal/capture | Capture a PayPal order the buyer completed. | — |
| GET | /v1/orders/{orderId}/refund-eligibility | Preview an order's refund eligibility. | billing.view |
| POST | /v1/orders/{orderId}/refund-request | Request a refund for an order. | billing.payment.manage |
| GET | /v1/refund-requests | List the organization's refund requests. | billing.view |
| GET | /v1/refund-requests/{refundRequestId} | Get a refund request. | billing.view |
| POST | /v1/refund-requests/{refundRequestId}/approve | Approve a pending refund request (staff). | — |
| POST | /v1/refund-requests/{refundRequestId}/reject | Reject a pending refund request (staff). | billing.refund |