Business Connect Stripe

Connect Stripe Account to this Business.

Parameters
  • idpath integerRequired

    Connect Stripe Account to this Business by specific business id. You can retrieve this id from ...

  • data[id]formData stringRequired

    Provide Business id.

  • data[type]formData string

    Provide Business type. Current selection is only businesses.

  • data[attributes][authorization_code]formData string

    Authorization Code retrieved from Stripe.

PATCH/api/v1/businesses/{id}/connect_stripe

{
  const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/connect_stripe`, {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      id: '1231',
      data: {
        id: '1231 ',
        type: 'businesses'
      },
      attributes: {
        authorization_code: 'strip-authorization-code'
      }
    })});
  const data = await res.json();
}

RESPONSE