View as Markdown

SDK reference · Node SDK

prov.account.resubmitSendingNumber

prov.account.resubmitSendingNumber in Node SDK. Send the corrected details of a number that needs a fix.

Signature

prov.account.resubmitSendingNumber(id: string, corrections: Partial<Omit<SendingNumberDetails, "consent">> & { consent?: { method?: SendingNumberConsentMethod; evidenceUrl?: string | null } }): Promise<SendingNumber>

Parameters

idstringRequired
correctionsPartial<Omit<SendingNumberDetails, "consent">> & { consent?: { method?: SendingNumberConsentMethod; evidenceUrl?: string | null } }Required

Request fields

idstringpathRequired
The sending number's id.

Returns

Promise<SendingNumber> The number, back in review.

HTTP operation

POST /v1/account/sending_numbers/{id}/resubmit: Send a number's details again

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/sending_numbers/snum_4f2a9c0e7b1d3e5a6c8b/resubmit`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "website": "https://pellowmarsh.example/about",
    "consent": {
      "method": "sign_up_form",
      "evidence_url": "https://pellowmarsh.example/join"
    }
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.