Notarize with storage (complete registration)

This API call is used to complete the request to notarize a document issued previously using the storage of S3.

HTTP Request notarization with storage

POST https://app.dedit.io/api/v2/registration/{hash of the request}/forfait

Headers

NameValueDescription

Content-Type

application/json

The content type of the request body

Authorization

Bearer $TOKEN

authentication token that is used to authorize access to an API

Request body

NameTypeDescription

sessionId

string

id of the Stripe session

id

string

id of Dedit subscription session

userId

int

id of the user

planId

string

id of Dedit subscription plan

planNickname

string

name of Dedit subscription

status

string

status of Dedit subscription

created

timestamp

date of Dedit subscription creation

currentPeriodStart

timestamp

date of Dedit subscription period start

currentPeriodEnd

timestamp

date of Dedit subscription period end

canceledAt

boolean

subscription cancellation

custumer

string

id of the stripe account connected to the Dedit subscription

defaultPaymentMethod

string

payment method

latestInvoice

string

invoice id

Example of a valid request body:

{
"id":"sub_1KeRbLGkNaxxxxx7KjvhTH",
"sessionId":"cs_live_xxxxxRHIuf3doTcIR3AD8W1zb4BdwGwh9qjUtZbQaztFjpHohj5zC1",
"id":"sub_1KeRbLGkNaxxxxx7KjvhTH",
"userId":1098,
"planId":"price_1KeRVxxxxxEmNJUHlWqB2La",
"planNickname":"Dedit Milleallanno",
"status":"active",
"created":1647555323,
"currentPeriodStart":1647555323,
"currentPeriodEnd":1679091323,
"canceledAt":0,
"customer":"cus_LF6zkMxxxxeZBm",
"defaultPaymentMethod":null,
"latestInvoice":"in_1KexxxxxGkNaUEmNJUDfjoxzZk"
} 

The above command returns a JSON structured like this:

{
"hash":"905d4f33b218427e8371341674a913db02402f648fef6cdf47c16f65d2dd3001",
"description":"TEST 13-04-2022",
"custody":false,
"signed":false,
"signer":null,
"signature":null,
"txHash":null,
"status":"registered",
"blockchainType":"ALGORAND",
"holder":null,
"txId":null,
"assetId":null,
"tags":[],
"paymentId":"sub_1KeRbLGkccccU17KjvhTH",
"creationDate":1649855665000,
"payload":null,
"userId":1098
}

Last updated