Skip to main content
POST
/
v3
/
customer
/
{id}
/
{type}
Add Billing/Shipping
curl --request POST \
  --url https://service-sandbox.tazapay.com/v3/customer/{id}/{type} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "billing": {
    "name": "Andrew Robin",
    "address": {
      "line1": "29-35",
      "line2": "9th Ave",
      "city": "New York",
      "state": "New York",
      "country": "US",
      "postal_code": "10014"
    },
    "phone": {
      "calling_code": "1",
      "number": "9876543214"
    }
  },
  "shipping": {
    "name": "Andrew Robin",
    "address": {
      "line1": "1000",
      "line2": "5th Ave",
      "city": "New York",
      "state": "New York",
      "country": "US",
      "postal_code": "10028"
    },
    "phone": {
      "calling_code": "1",
      "number": "9876543214"
    }
  }
}
'
{
  "status": "success",
  "message": "",
  "data": {
    "address_id": "cad_d3rmr3k5rcmatbpls98g",
    "message": "Successfully added the customer billing address"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

ID of an already existing customer object

type
enum<string>
required

The type of address you want to add.

Available options:
billing,
shipping

Body

application/json
address_details
object

Address Details

Response

200 - application/json

200

status
string
message
string
data
object