# API Specification Common Rules

**Interface call frequency limit:**  Frequency limit for each IP is 100 times per second.

### Protocol Rules&#x20;

The following specifies the rules for calling the API when accessing CCPayment

| Rule                       | Description                                                      |
| -------------------------- | ---------------------------------------------------------------- |
| Transfer Mode              | Use HTTPS for secure transactions.                               |
| Submit Mode                | POST, depends on the API.                                        |
| Data Format (content-type) | Data submitted and response are both in application/json format. |
| Char Encoding              | Use UTF-8 character encoding.                                    |
| Signature Algorithm        | SHA-256                                                          |

### Request Header

<table><thead><tr><th width="170" align="center">Request Header</th><th width="79" align="center">Type</th><th width="104" align="center">Required</th><th width="143">Value</th><th width="351">Description</th></tr></thead><tbody><tr><td align="center">content-type</td><td align="center">string</td><td align="center">Y</td><td></td><td>application/json</td></tr><tr><td align="center">Appid</td><td align="center">string</td><td align="center">Y</td><td></td><td>Merchant's unique credential. Find it on the <a href="https://admin.ccpayment.com/developer/config">Developer page</a>.</td></tr><tr><td align="center">Timestamp</td><td align="center">string</td><td align="center">Y</td><td>1677152720</td><td>Timestamp in seconds (10-digit) expires in 2 minutes.</td></tr><tr><td align="center">Sign</td><td align="center">string</td><td align="center">Y</td><td>871f0223c66ea72435208d03603a0cb00b90f6ac4a4ba725d00164d967e291f6</td><td>SHA-256 (APPID + APP Secret +timestamp+<mark style="color:red;"><strong>body (json string)</strong></mark>). <a href="https://doc.ccpayment.com/~/changes/HSMg9pcC4k6HIczMjOvx/ccpayment-for-developer/to-get-started/signature">Signature guide</a>.</td></tr></tbody></table>

### Payment API Error Code

{% content-ref url="/pages/x1dzF0Y0we0ugctTmCMD" %}
[Error Code](/ccpayment-v1.0-api/resources-document/error-code.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ccpayment.com/ccpayment-v1.0-api/to-get-started/api-specification-common-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
