Set the payment method
POST/api/v3/package/:package_id/_action/setPayMethod
Valid values for specifying paymethod:
inv
- Generate an invoice for the subscription but do not take an automatic paymentcrd
- Credit Cardach
- ACH/eChecktok
- Tokenized payment method
Additionally:
- If you specify
crd
you must specify thecreditcard_id
- If you specify
ach
you must specify theach_id
- If you specify
tok
you must specify thetokenized_id
Request
- application/json
Body
paymethod string
Possible values: [inv
, crd
, ach
, tok
]
creditcard_id integer
ach_id integer
tokenized_id integer
Responses
- 200
- 400
- 401
Action completed successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": true
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Loading...