# Credit Signer

Credit Signers represent every person or entity that must sign the CCB contract of a Credit Note.

Signers are created together with the Credit Note, through its "signers" parameter, and are returned embedded in the CreditNote object. Signers registered in your credit profile and the SCD signature are appended automatically.

When the method is "link" or "token", the signer receives the signing link or token on the registered contact (email or phone). If a signer misses it, you can trigger a new delivery.

### The CreditSigner object

**Attributes**

| Name | Type | Description |
| --- | --- | --- |
| `id` | STRING | Unique id for the credit signer. |
| `name` | STRING | Signer full name. |
| `contact` | STRING | Signer contact that receives the signing link or token. Can be an email, a phone number or, for the "server" and "organization" methods, a URL. |
| `method` | STRING | Signing method. Options: "link" (signing link sent to the contact), "token" (signing token sent to the contact), "server" and "organization" (automatic signatures over URL contacts). |
| `signed` | STRING | Datetime when the signer signed the contract. Empty until the signature happens. Example: "2022-06-02T00:00:00.000000+00:00". |

### Update a Credit Signer

`PATCH /v2/credit-signer/:id`

Update the delivery state of a credit signer's signing token or link. Setting "isSent" to false marks it as not delivered, causing it to be sent again to the signer's contact. Use it when a signer misses the original email or SMS.

**Parameters**

| Name | Required | Description |
| --- | --- | --- |
| `id` | REQUIRED | Id of the credit signer entity, as returned in the "signers" field of the CreditNote object. |
| `isSent` | REQUIRED | Delivery state of the signing token or link. Set to false to trigger a new delivery. |

**Request**

```python
import starkinfra

signer = starkinfra.creditsigner.resend_token("6306107546853376")

print(signer)
```

**Response**

```python
CreditSigner(
    id=6306107546853376,
    name=Jamie Lannister,
    contact=jamie.lannister@gmail.com,
    method=link,
    signed=
)
```

## Available Languages

Code samples on this page are in Python. The same content is available with samples in:

- [Python](https://docs.starkinfra.com/api/v2/credit-signer-python.md)
- [Node.js](https://docs.starkinfra.com/api/v2/credit-signer-node.md)
- [PHP](https://docs.starkinfra.com/api/v2/credit-signer-php.md)
- [Java](https://docs.starkinfra.com/api/v2/credit-signer-java.md)
- [Ruby](https://docs.starkinfra.com/api/v2/credit-signer-ruby.md)
- [Elixir](https://docs.starkinfra.com/api/v2/credit-signer-elixir.md)
- [.NET](https://docs.starkinfra.com/api/v2/credit-signer-dotnet.md)
- [Go](https://docs.starkinfra.com/api/v2/credit-signer-go.md)
- [Clojure](https://docs.starkinfra.com/api/v2/credit-signer-clojure.md)
- [cURL](https://docs.starkinfra.com/api/v2/credit-signer-curl.md)
