Lists the Billing Methods associated with the Hub defined in X-Hub-ID.
Requires the billing-methods-manage
capability.
returns a collection of billing methods.
General error response from the platform
{- "data": [
- {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "primary": true,
- "address": {
- "country": "string",
- "zip": "string"
}, - "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "source": {
- "type": "stripe-credit-card",
- "details": {
- "name": "string",
- "brand": "string",
- "expiration": {
- "month": 0,
- "year": 0
}, - "last_4": "string"
}
}, - "mandate": {
- "accepted": "2021-01-30T08:30:00Z",
- "ip": "string",
- "user_agent": "string",
- "email": "string"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}
}
]
}
Requires the billing-methods-manage
capability.
Parameters for creating a new billing method.
Returns a billing method.
General error response from the platform
{- "name": "string",
- "primary": true,
- "address": {
- "country": "string",
- "zip": "string"
}, - "credit_card": {
- "name": "string",
- "number": "string",
- "cvv": "string",
- "expiration": {
- "month": 0,
- "year": 0
}
}, - "us_bank_acct": {
- "account_holder_name": "string",
- "account_holder_type": "individual",
- "routing_number": "string",
- "account_number": "string"
}
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "primary": true,
- "address": {
- "country": "string",
- "zip": "string"
}, - "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "source": {
- "type": "stripe-credit-card",
- "details": {
- "name": "string",
- "brand": "string",
- "expiration": {
- "month": 0,
- "year": 0
}, - "last_4": "string"
}
}, - "mandate": {
- "accepted": "2021-01-30T08:30:00Z",
- "ip": "string",
- "user_agent": "string",
- "email": "string"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}
}
}
Requires the billing-methods-manage
capability.
Returns a billing method resource.
General error response from the platform
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "primary": true,
- "address": {
- "country": "string",
- "zip": "string"
}, - "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "source": {
- "type": "stripe-credit-card",
- "details": {
- "name": "string",
- "brand": "string",
- "expiration": {
- "month": 0,
- "year": 0
}, - "last_4": "string"
}
}, - "mandate": {
- "accepted": "2021-01-30T08:30:00Z",
- "ip": "string",
- "user_agent": "string",
- "email": "string"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}
}
}
Requires the billing-methods-manage
capability.
Returns a billing method resource.
General error response from the platform
{- "name": "string",
- "primary": true
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "primary": true,
- "address": {
- "country": "string",
- "zip": "string"
}, - "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "source": {
- "type": "stripe-credit-card",
- "details": {
- "name": "string",
- "brand": "string",
- "expiration": {
- "month": 0,
- "year": 0
}, - "last_4": "string"
}
}, - "mandate": {
- "accepted": "2021-01-30T08:30:00Z",
- "ip": "string",
- "user_agent": "string",
- "email": "string"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}
}
}
Deletes the Billing Method. However, the primary payment method may not be deleted.
Requires the billing-methods-manage
capability.
Returns a Job Descriptor.
General error response from the platform
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}
Creates a new job for a billing method. Generally used to verify a payment method.
Requires the billing-methods-manage
capability.
Returns a job descriptor.
General error response from the platform
{- "action": "verify",
- "contents": {
- "micro_deposits": [
- 0
]
}
}
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}