Attribute a deposit as spam
curl --request POST \
--url https://api.anchorage-staging.com/v2/deposit-attributions/{depositTransactionId}/spam \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.anchorage-staging.com/v2/deposit-attributions/{depositTransactionId}/spam"
payload = {}
headers = {
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.anchorage-staging.com/v2/deposit-attributions/{depositTransactionId}/spam', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"depositTransactionId": "0e2b2f9d-8d10-4f1e-960b-28567255045f",
"status": "UNDER_REVIEW"
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Attribute a deposit as spam
Permissions required: Deposit Attribution.
Attribute a deposit as spam.
Only attributions in PENDING status can be attributed.
Once the attribution is successfully performed the attribution status moves from PENDING to ATTRIBUTED.
For any spam attribution performed via API, the attributionType will automatically be set to SPAM and the deposit’s funds will cease to be available.
POST
/
deposit-attributions
/
{depositTransactionId}
/
spam
Attribute a deposit as spam
curl --request POST \
--url https://api.anchorage-staging.com/v2/deposit-attributions/{depositTransactionId}/spam \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.anchorage-staging.com/v2/deposit-attributions/{depositTransactionId}/spam"
payload = {}
headers = {
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.anchorage-staging.com/v2/deposit-attributions/{depositTransactionId}/spam', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"depositTransactionId": "0e2b2f9d-8d10-4f1e-960b-28567255045f",
"status": "UNDER_REVIEW"
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Headers
A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.
Construction example:
toHex(
ed25519Sign(
signing_key,
'{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody)
)
)
Pattern:
^[0-9A-Fa-f]{128,160}$Path Parameters
Body
application/json
The body is of type object | null.
Was this page helpful?