v1

latestOpenAPI 3.1.02026-07-26477322.4 KB

Editar code de recebedor

patch/recipients/{recipient_id}/code

Path parameters

recipient_idstring required

Identificador do recebedor

Request body

Codestring required

Referencia externa única por recebedor

Response

200

idstring
namestring
emailstring
documentstring
descriptionstring
typestring
statusstring
created_atstring
updated_atstring
codestring

Example response

{
  "id": "rp_23452cBK6lP",
  "name": "Tony Stark",
  "email": "tstark@avengers.com",
  "document": "223451990",
  "description": "Recebedor Tony Stark",
  "type": "individual",
  "status": "active",
  "created_at": "2018-05-23T16:17:39Z",
  "updated_at": "2018-05-23T16:17:39Z",
  "code": "123",
  "transfer_settings": {
    "transfer_interval": "Daily"
  },
  "default_bank_account": {
    "id": "ba_2LYnR234Og",
    "holder_name": "Tony Stark",
    "holder_type": "individual",
    "holder_document": "26224451990",
    "bank": "341",
    "branch_number": "12345",
    "branch_check_digit": "6",
    "account_number": "12345",
    "account_check_digit": "6",
    "type": "checking",
    "status": "active",
    "created_at": "2018-05-23T16:17:40Z",
    "updated_at": "2018-05-23T16:17:40Z",
    "metadata": {
      "key": "value"
    }
  },
  "automatic_anticipation_settings": {
    "enabled": true,
    "type": "full",
    "volume_percentage": 50,
    "delay": 365,
    "days": [
      1
    ]
  },
  "gateway_recipients": [
    {
      "gateway": "pagarme",
      "status": "active",
      "pgid": "re_cjhjb34244o9jw6dyx5aizxn",
      "createdAt": "2018-05-23T16:17:45Z",
      "updatedAt": "2018-05-23T16:17:45Z"
    }
  ],
  "metadata": {
    "key": "value"
  }
}