Accounts


Parameters

Name In Type Required Description
orgId path string true organization name
accountId path integer(int64) true account identifier
body body PaymentMethodUpdate true ‘none’

Request body - instance of PaymentMethodUpdate

1
2
3
{
  "payment_method": "BANK_TRANSFER"
}
Name Type Required Description
payment_method string true none
Property Values
payment_method one of [BANK_TRANSFER]

Request example

1
2
3
4
5
6
7
8
9

curl -X PUT https://customers.sta.masstack.com/v3/orgs/telco/accounts/214748364/payment-method \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "x-auth-roles: API_KEY" \
 --data-raw "{
  'payment_method': 'BANK_TRANSFER'
}" 

Responses

Code Meaning Description Schema
204 No Content Payment method updated None
400 Bad Request Invalid request body ErrorMessage
404 Not Found Resource not found ErrorMessage
405 Method Not Allowed Method not allowed None

400 - instance of ErrorMessage

Custom schema example

1
2
3
4
5
6
{
  "code": 0,
  "status": "string",
  "message": "string",
  "detailMsg": "string"
}
Name Type Required Description
code integer(int32) false Custom error code
status string false Status
message string false Status message
detailMsg string false Detailed description of the error

Endpoints

Customers

    Events

      Memos

        Typifications

          Invoices

            Accounts