Skip to content

Create

Authentication

In order to use Trustprofile Partner's Create API, you will need an Authorization token provided by us. Without token, the API will not work.

Base URL

https://dashboard.trustprofile.com

POST /partner_api/create

Headers

Content-Type: application/json

Query parameters

token string (required)

Your secret token

Body parameters

{
    "addresses": {
        "shop": {
            "email": "example@example.com",
            "street": "Street 1",
            "city": "City",
            "postcode": "1111 AB",
            "country": "GB",
            "phone": "+12345678"
        },
        "company": {
            "email": "example@example.com",
            "street": "Street 1",
            "city": "City",
            "postcode": "1111 AB",
            "country": "GB",
            "phone": "+12345678"
        }
    },
    "assurance": {
        "status": true,
        "date": "2021-09-12",
        "requested_on": "2018-06-02"
    },
    "shop_url": "https://www.example.com",
    "language": "en",
    "name": "Example Shop Name",
    "profile_url": "https://example-profile.com",
    "source": "partner_name",
    "vat": "GB123456789"
}

Example response

{
    "source": "certification_key",
    "source_id": "example.com"
}
Profile schema validation
{
    "properties": {
        "addresses": {
            "properties": {
                "company": {
                    "minProperties": 1,
                    "properties": {
                        "city": {
                            "type": ["string", "null"]
                        },
                        "country": {
                            "pattern": "^[A-Z]{2}$",
                            "type": ["string", "null"]
                        },
                        "email": {
                            "format": "email",
                            "type": ["string", "null"]
                        },
                        "phone": {
                            "type": ["string", "null"]
                        },
                        "postcode": {
                            "type": ["string", "null"]
                        },
                        "street": {
                            "type": ["string", "null"]
                        }
                    },
                    "type": "object"
                },
                "shop": {
                    "minProperties": 1,
                    "properties": {
                        "city": {
                            "type": ["string", "null"]
                        },
                        "country": {
                            "pattern": "^[A-Z]{2}$",
                            "type": ["string", "null"]
                        },
                        "email": {
                            "format": "email",
                            "type": ["string", "null"]
                        },
                        "phone": {
                            "type": ["string", "null"]
                        },
                        "postcode": {
                            "type": ["string", "null"]
                        },
                        "street": {
                            "type": ["string", "null"]
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        },
        "assurance": {
            "properties": {
                "date": {
                    "format": "date",
                    "type": "string"
                },
                "requested_on": {
                    "format": "date",
                    "type": "string"
                },
                "status": {
                    "type": "boolean"
                }
            },
            "required": ["status"],
            "type": "object"
        },
        "language": {
            "pattern": "^[a-z]{2}$",
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "phone": {
            "type": ["string", "null"]
        },
        "profile_url": {
            "format": "uri",
            "type": ["string", "null"]
        },
        "shop_url": {
            "format": "uri",
            "type": "string"
        },
        "source": {
            "type": "string"
        },
        "vat": {
            "type": ["string", "null"]
        }
    },
    "required": ["id", "shop_url", "source"],
    "type": "object"
}