# Get signature service (symmetric signature)

##### Server

<table border="1" id="bkmrk-environment-link-dev" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><tbody><tr><td>**Environment**  
</td><td>**Link**  
</td></tr><tr><td>Development</td><td>https://apidevportal.aspi-indonesia.or.id:44310</td></tr></tbody></table>

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 65.435%;"></col><col style="width: 34.565%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td></tr><tr><td>/api/v1.0/utilities/signature-service</td><td>POST</td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 65.2656px;"><colgroup><col style="width: 46.9607%;"></col><col style="width: 53.0393%;"></col></colgroup><tbody><tr style="height: 29.875px;"><td style="height: 29.875px;">**Parameter**</td><td style="height: 29.875px;">**Token source**  
</td></tr><tr style="height: 35.3906px;"><td style="height: 35.3906px;">AccessToken</td><td style="height: 35.3906px;">[Access token B2B](https://documentation.onindonesia.id/books/snap-bi/page/access-token-b2b "Access token B2B")</td></tr></tbody></table>

##### Header

<table border="1" id="bkmrk-parameter-value-%C2%A0" style="border-collapse: collapse; width: 100%; height: 201.25px;"><colgroup><col style="width: 45.0768%;"></col><col style="width: 54.9232%;"></col></colgroup><tbody><tr style="height: 29.875px;"><td style="height: 29.875px;">**Parameter**  
</td><td style="height: 29.875px;">**Value**  
</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">X-TIMESTAMP</td><td style="height: 46.5938px;">timestampz  
example: 2024-12-01T07:15:00+07:00</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">X-CLIENT-SECRET</td><td style="height: 29.7969px;">Client Secret in "Request Aplikasi Pengujian" page  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">EndpoinUrl</td><td style="height: 29.7969px;">/api/v1.0/transfer-va/payment</td></tr><tr style="height: 35.3906px;"><td style="height: 35.3906px;">AccessToken</td><td style="height: 35.3906px;">[Access token B2B](https://documentation.onindonesia.id/books/snap-bi/page/access-token-b2b "Access token B2B")</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">HttpMethod</td><td style="height: 29.7969px;">Depends on the service will be using  
Example: Transver VA Payment is using POST, so the value will be POST.</td></tr></tbody></table>

##### Body request (example)

<p class="callout info">Body value is same as the next service</p>

```json
{
    "partnerServiceId": "  088899",
    "customerNo": "12345678901234567890",
    "virtualAccountNo": "  08889912345678901234567890",
    "virtualAccountName": "Tom",
    "virtualAccountEmail": "tom@tts.com",
    "virtualAccountPhone": "6281828384858",
    "trxId": "abcdefgh1234",
    "paymentRequestId": "abcdef-123456-abcdef",
    "channelCode": 6011,
    "hashedSourceAccountNo": "abcdefghijklmnopqrstuvwxyz123456",
    "sourceBankCode": "008",
    "paidAmount": {
        "value": "12345678.00",
        "currency": "IDR"
    },
    "cumulativePaymentAmount": {
        "value": "12345678.00",
        "currency": "IDR"
    },
    "paidBills": "95000",
    "totalAmount": {
        "value": "12345678.00",
        "currency": "IDR"
    },
    "trxDateTime": "20201231T235959Z",
    "referenceNo": "123456789012345",
    "journalNum": "123456",
    "paymentType": 1,
    "flagAdvise": "Y",
    "subCompany": "12345",
    "billDetails": [
        {
            "billCode": "01",
            "billNo": "123456789012345678",
            "billName": "Bill A for Jan",
            "billShortName": "Bill A",
            "billDescription": {
                "english": "Maintenance",
                "indonesia": "Pemeliharaan"
            },
            "billSubCompany": "00001",
            "billAmount": {
                "value": "12345678.00",
                "currency": "IDR"
            },
            "additionalInfo": {},
            "billReferenceNo": "123456789012345"
        }
    ],
    "freeTexts": [
        {
            "english": "Free text",
            "indonesia": "Tulisan bebas"
        }
    ],
    "additionalInfo": {}
}
```

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">200 OK</p>

```json
{
    "signature": "YXD+d+yHRKRMz0+aVjLu6K2nQ3Fd9KryoMxvkQPs1CXkSqOvv0"
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">400 Bad Request  
Request is missing one or more header parameter</p>

```javascript
{
    "responseCode": "4000000",
    "responseMessage": "The <header> field is required."
}
```

</details>