Create a payment for an order
POSThttps://api.staging.powerapi.com/api/v1/payments
Create a payment for an order
Request
- application/vnd.api+json
Body
required
data
object
Responses
- 204
- application/vnd.api+json
- Schema
Schema
any
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/payments' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "payments",
"attributes": {
"stripe_token": "string",
"stripe_payment_method_id": "string"
},
"relationships": {
"order": {
"data": {
"type": "order",
"id": "string"
}
}
}
}
}'
ResponseClear