Skip to main content

Billing

GET Billings#

Get payment details.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/organizations/{organizationId}/billings
HeadersAuthorization
ParametersorganizationId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstring"string"Shows the identifier for organization

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
organizationIdYesstring"string"Shows the identifier for organization

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "brand": "string",  "country": "string",  "funding": "string",  "expMonth": 0,  "expYear": 0,  "last4": "string"}
Field NameTypeExampleDescription
brandstring"string"
countrystring"string"
fundingstring"string"
expMonthinteger($int32)0
expYearinteger($int32)0
last4string"string"

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE Organization#

Remove organization default payment.

DELETE
MethodDELETE
URL or EndPoint/api​/v{version}​/organizations​/{organizationId}​/billings
HeadersAuthorization
ParametersorganizationId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstringv1The identifier for the organization

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)1The identifier for the organization

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "brand": "string",  "country": "string",  "funding": "string",  "expMonth": 0,  "expYear": 0,  "last4": "string"}
Field NameTypeExampleDescription
brandstring"string"
countrystring"string"
fundingstring"string"
expMonthinteger($int32)0
expYearinteger($int32)0
last4string"string"

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found