Attribute a deposit as spam
curl --request POST \
--url https://api.anchorage-staging.com/v4/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' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{}'import requests
url = "https://api.anchorage-staging.com/v4/deposit-attributions/{depositTransactionId}/spam"
payload = {}
headers = {
"Idempotency-Key": "<idempotency-key>",
"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: {
'Idempotency-Key': '<idempotency-key>',
'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/v4/deposit-attributions/{depositTransactionId}/spam', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"depositTransactionId": "0e2b2f9d8d104f1e960b28567255045f",
"status": "UNDER_REVIEW"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"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; on success the status moves from PENDING to UNDER_REVIEW and, once the attribution workflow completes, to ATTRIBUTED. Any spam attribution performed via API automatically sets attributionType to SPAM, and the deposit’s funds cease to be available.
POST
/
deposit-attributions
/
{depositTransactionId}
/
spam
Attribute a deposit as spam
curl --request POST \
--url https://api.anchorage-staging.com/v4/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' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{}'import requests
url = "https://api.anchorage-staging.com/v4/deposit-attributions/{depositTransactionId}/spam"
payload = {}
headers = {
"Idempotency-Key": "<idempotency-key>",
"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: {
'Idempotency-Key': '<idempotency-key>',
'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/v4/deposit-attributions/{depositTransactionId}/spam', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"depositTransactionId": "0e2b2f9d8d104f1e960b28567255045f",
"status": "UNDER_REVIEW"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Headers
Path Parameters
Body
application/json
The body is of type object | null.
Was this page helpful?