Baack
Browse the docs

Endpoints

  • CreatePOST/n/v1/address/

    Endpoint handling postal addresses associated with people and companies

    Baack allocates the URN and returns it in the response.

    Request body: Address

    Responses

    201 Created
    returns AddressCREATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • ReadGET/n/v1/address/{urn}

    Endpoint handling postal addresses associated with people and companies

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    200 OK
    returns AddressREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/address/{urn}
  • UpdatePUT/n/v1/address/{urn}

    Endpoint handling postal addresses associated with people and companies

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Request body: Address

    Responses

    202
    returns AddressUPDATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • DeleteDELETE/n/v1/address/{urn}

    Endpoint handling postal addresses associated with people and companies

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    202
    DELETE_SUCCESS

Webhook

POSTyour destination URL

Subject: ADDRESS

Webhook for events related to an address associated with an identity

An address associated with an identity, can be optional or multiple. Updates to address can be helpful for scenarios like when a new address is added or an address is updated in order to send customers new materials. This can be highly effective when driving changes to contract for example, to send customers updated documents or when a deliver address is amended to update shipping instructions.

Body: Webhook Event

Your response

200
Return 200 status to indicate that data was received successfully

Fields

Address fields
FieldTypeDescription
urnstring (uuid)
areastring

Optional.

identityIdentity
officeBoxNumberstring

Optional.

streetstring

Required on create.

.

countryCodestring

One of: UNDEFINED, AC, AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BU, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CP, CR, CS, CU, CV, CW, CX, CY, CZ, DE, DG, DJ, DK, DM, DO, DZ, EA, EC, EE, EG, EH, ER, ES, ET, EU, EZ, FI, FJ, FK, FM, FO, FR, FX, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NT, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SF, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SU, SV, SX, SY, SZ, TA, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TP, TR, TT, TV, TW, TZ, UA, UG, UK, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XI, XU, XK, YE, YT, YU, ZA, ZM, ZR, ZW

addressTypestring

Optional.

One of: BILLING, COMPANY, HOME, CONTACT, SHIPPING

postalCodestring

Required on create.

.

localitystring
regionstring

Optional.

urlstring (uri)

Used by: Identity